import React from 'react';
import { CompletionsRequestOptions, StreamChunk, ProcessingError } from '../types';
interface NeuraStreamProps {
    options: CompletionsRequestOptions;
    onChunk?: (chunk: StreamChunk) => void;
    onComplete?: (fullText: string) => void;
    onError?: (error: Error | ProcessingError) => void;
    children: (state: {
        chunks: StreamChunk[];
        fullText: string;
        loading: boolean;
        error: Error | ProcessingError | null;
        restart: () => void;
    }) => React.ReactNode;
}
export declare const NeuraStream: React.FC<NeuraStreamProps>;
export {};
