@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
10 lines • 706 B
TypeScript
export declare const CHUNK_SIZE: number;
/**
* Split even a single RAM/cache blob; an abort closes the producer and wins
* over a stalled pull. Unless `split`, each pull passes through whole, as its
* producer wrote it. `check` runs with the budget (a deadline).
*/
export declare function chunks(source: Uint8Array | AsyncIterable<Uint8Array>, signal?: AbortSignal, split?: boolean, check?: () => void): AsyncIterableIterator<Uint8Array>;
/** Read at most count bytes, closing the source when the limit is reached. */
export declare function readPrefix(source: Uint8Array | AsyncIterable<Uint8Array>, count: number, signal?: AbortSignal): Promise<Uint8Array>;
//# sourceMappingURL=cooperative.d.ts.map