import { QueryClient } from "@tanstack/react-query"; import { ReactNode } from "react"; import { SQLocal } from "sqlocal"; import { GenerateDatabaseMutation } from "../types"; type Props = { children: ReactNode; websocketServerUrl?: string; loader?: ReactNode; databaseInit?: string[]; runMigrations?: (sqlocal: SQLocal) => Promise; onInitialRemoteUpdatesReceived?: (sqlocal: SQLocal, { pubKeyHex, deviceId }: { pubKeyHex: string; deviceId: string; }) => Promise<{ mutations: GenerateDatabaseMutation[]; onSuccess?: () => void; }>; }; export declare const queryClient: QueryClient; export declare const LofikProvider: ({ children, loader, websocketServerUrl, databaseInit, runMigrations, onInitialRemoteUpdatesReceived, }: Props) => string | number | true | Iterable | import("react/jsx-runtime").JSX.Element | null; export {};