import { type PropsWithChildren } from "react";
type Subscribe = (topic: string, handler: (event: any) => void) => Promise<void>;
export declare const WebSocketContext: import("react").Context<{
    broadcast: (topic: string, payload: Record<string, any>) => void;
    subscribe: Subscribe;
    unsubscribe: (topic: string, handler: (event: any) => void) => Promise<void>;
}>;
export declare const WebSocketContextProvider: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=WebsocketContext.d.ts.map