mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 10:44:24 +08:00
17 lines
428 B
TypeScript
17 lines
428 B
TypeScript
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
import { Readable } from 'stream';
|
|
import { GetUriProtocol } from './';
|
|
declare class DataReadable extends Readable {
|
|
hash?: string;
|
|
constructor(hash: string, buf: Buffer);
|
|
}
|
|
export interface DataOptions {
|
|
cache?: DataReadable;
|
|
}
|
|
/**
|
|
* Returns a Readable stream from a "data:" URI.
|
|
*/
|
|
export declare const data: GetUriProtocol<DataOptions>;
|
|
export {};
|