knowledgebase_law/node_modules/turbo-stream/dist/turbo-stream.d.ts

14 lines
471 B
TypeScript
Raw Normal View History

2025-04-11 23:47:09 +08:00
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>;