common.d.ts 546 B

1234567891011121314151617
  1. export interface ParsedDataURI {
  2. type: string;
  3. typeFull: string;
  4. charset: string;
  5. buffer: ArrayBuffer;
  6. }
  7. export interface IBufferConversions {
  8. base64ToArrayBuffer(base64: string): ArrayBuffer;
  9. stringToBuffer(str: string): ArrayBuffer;
  10. }
  11. /**
  12. * Returns a `Buffer` instance from the given data URI `uri`.
  13. *
  14. * @param {String} uri Data URI to turn into a Buffer instance
  15. */
  16. export declare const makeDataUriToBuffer: (convert: IBufferConversions) => (uri: string | URL) => ParsedDataURI;
  17. //# sourceMappingURL=common.d.ts.map