import type { AIClientMessage, AIConnectionOptions, AIServerMessage } from '../../../types/ai';
type AIConnectionHandle = {
    close: () => void;
    getReadyState: () => number;
    send: (msg: AIClientMessage) => void;
    subscribe: (callback: (msg: AIServerMessage) => void) => () => void;
};
export declare const createAIConnection: (path: string, options?: AIConnectionOptions) => AIConnectionHandle;
export {};
