四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
503 B

/// <reference types="node" />
import { Readable } from 'stream';
import { UrlWithStringQuery } from 'url';
import { GetUriOptions } from '.';
declare class DataReadable extends Readable {
hash?: string;
constructor(hash: string, buf: Buffer);
}
interface DataOptions extends GetUriOptions {
cache?: DataReadable;
}
/**
* Returns a Readable stream from a "data:" URI.
*/
export default function get({ href: uri }: UrlWithStringQuery, { cache }: DataOptions): Promise<Readable>;
export {};