mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 02:08:16 +08:00
14 lines
471 B
TypeScript
14 lines
471 B
TypeScript
|
import { type DecodePlugin, type EncodePlugin } from "./utils.js";
|
||
|
export type { DecodePlugin, EncodePlugin };
|
||
|
export declare function decode(readable: ReadableStream<Uint8Array>, options?: {
|
||
|
plugins?: DecodePlugin[];
|
||
|
}): Promise<{
|
||
|
done: Promise<undefined>;
|
||
|
value: unknown;
|
||
|
}>;
|
||
|
export declare function encode(input: unknown, options?: {
|
||
|
plugins?: EncodePlugin[];
|
||
|
postPlugins?: EncodePlugin[];
|
||
|
signal?: AbortSignal;
|
||
|
}): ReadableStream<Uint8Array>;
|