import { ReactNode } from "react"; import { Socket } from "socket.io-client"; import { SQLocal } from "sqlocal"; import { GenerateDatabaseMutation } from "../types"; type WebsocketContext = { socket?: Socket; }; export declare const WebsocketContext: import("react").Context; type Props = { children: ReactNode; websocketServerUrl?: string; onInitialRemoteUpdatesReceived?: (sqlocal: SQLocal, { pubKeyHex, deviceId }: { pubKeyHex: string; deviceId: string; }) => Promise<{ mutations: GenerateDatabaseMutation[]; onSuccess?: () => void; }>; }; export declare const WebsocketProvider: ({ children, websocketServerUrl, onInitialRemoteUpdatesReceived, }: Props) => import("react/jsx-runtime").JSX.Element; export {};