import { QueryClient } from "@tanstack/react-query"; import { type ReactNode } from "react"; export declare function P1QueryProvider({ children }: { children: ReactNode; }): import("react").JSX.Element; /** * The QueryClient that SDK internals fetch through, kept out of react-query's * own context on purpose: a host application's client would govern SDK requests * through its retry and staleTime defaults, share a key namespace with them, and * drop their state on any clear() or broad invalidation of its own. Callers pass * this client to useQuery and useMutation explicitly, so a host component * rendered inside the editor still resolves the host's client from context. */ export declare const P1SdkQueryClientContext: import("react").Context; export declare function createP1SdkQueryClient(): QueryClient; /** Provides the first `client` it is given, or a client of its own. */ export declare function P1SdkQueryProvider({ client: given, children, }: { client?: QueryClient; children: ReactNode; }): import("react").JSX.Element; export declare function useP1SdkQueryClient(): QueryClient;