import { type InitialStateResponse } from '@/api/sse';
export type StreamSubscription = {
    type: string;
    params: Record<string, string>;
};
type StreamMessageHandler<T = unknown> = (data: T) => void | Promise<void>;
export declare function useSseClient(): {
    clientId: string;
    subscribe: <T = unknown>(subscription: StreamSubscription, handler: StreamMessageHandler<T>) => {
        unsubscribe: () => void;
        initialState: Promise<InitialStateResponse | null>;
    };
};
export {};
