import { OnDestroy } from '@angular/core';
import type { AIAttachment, AIMessage } from '../../../types/ai';
export declare class AIStreamService implements OnDestroy {
    private connections;
    connect(path: string, conversationId?: string): {
        branch: (messageId: string, content: string) => void;
        cancel: () => void;
        error: import("@angular/core").Signal<string | null>;
        isStreaming: import("@angular/core").Signal<boolean>;
        messages: import("@angular/core").Signal<AIMessage[]>;
        send: (content: string, attachments?: AIAttachment[]) => void;
    };
    private createHandle;
    ngOnDestroy(): void;
}
