/** * Shared QueryClient factory for agent-native apps. * * Exports a single `createAgentNativeQueryClient(overrides?)` so every * template root uses the same house defaults rather than a bare * `new QueryClient()` (which ships with staleTime=0 and * refetchOnWindowFocus=true, causing unnecessary network requests because the * useDbSync layer already pushes real-time invalidations on actual changes). * * House defaults: * - staleTime 30s — data is considered fresh for 30 s; useDbSync invalidates * on real changes so this only affects the window between sync events. * - retry — never retry 401/403; allow one retry for transient errors. * - refetchOnWindowFocus false — useDbSync already runs its own focus poll * (use-db-sync.ts) so unconditional refetch on focus would double-fetch. * * Callers may pass deep overrides for intentional deviations (e.g. a template * that uses a domain-specific staleTime for a particular query category). */ import { QueryClient, type QueryClientConfig } from "@tanstack/react-query"; /** * Creates a QueryClient pre-configured with agent-native house defaults. * * Pass `overrides` for intentional template-specific deviations — only what * actually differs from the house defaults should be specified. */ export declare function createAgentNativeQueryClient(overrides?: QueryClientConfig): QueryClient; //# sourceMappingURL=create-query-client.d.ts.map