data.d.ts 428 B

12345678910111213141516
  1. /// <reference types="node" />
  2. /// <reference types="node" />
  3. import { Readable } from 'stream';
  4. import { GetUriProtocol } from './';
  5. declare class DataReadable extends Readable {
  6. hash?: string;
  7. constructor(hash: string, buf: Buffer);
  8. }
  9. export interface DataOptions {
  10. cache?: DataReadable;
  11. }
  12. /**
  13. * Returns a Readable stream from a "data:" URI.
  14. */
  15. export declare const data: GetUriProtocol<DataOptions>;
  16. export {};