export interface StreamParserOptions {
    onChunk: (text: string) => void;
    onDone: (fullText: string) => void;
}
export declare class StreamParser {
    private buffer;
    private ended;
    private onChunk;
    private onDone;
    constructor(opts: StreamParserOptions);
    write(data: string | Buffer): void;
    end(): void;
}
//# sourceMappingURL=stream-parser.d.ts.map