import type { AIProvider, ChatOptions } from "../shared/types.js"; export interface StreamOptions extends Omit { onToken?: (token: string) => void; onDone?: (fullContent: string) => void; onError?: (error: Error) => void; } export declare function streamChat(provider: AIProvider, options: StreamOptions): AsyncGenerator; export declare function createStreamingText(provider: AIProvider, options: StreamOptions): { subscribe: (cb: (text: string) => void) => () => void; start: () => Promise; }; export declare function collectStream(stream: AsyncGenerator): Promise; //# sourceMappingURL=streaming.d.ts.map