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