import { type ReactNode } from "react"; export interface PolpoProviderProps { baseUrl: string; /** @deprecated No longer used. Kept for backwards compatibility. */ projectId?: string; apiKey?: string; /** * Override the fetch implementation used by the underlying `PolpoClient`. * Useful for cookie-auth scenarios (`credentials: "include"`), request * logging/tracing, injecting custom headers, retry middleware, or mocking * in tests. * * If omitted, the default uses `globalThis.fetch`. */ fetch?: typeof globalThis.fetch; /** * Override the API path prefix. Defaults to `/v1` for `*.polpo.sh` / * `*.polpo.cloud`, `/api/v1` otherwise. Set explicitly when the request * target is a proxy (e.g. a session-auth dashboard proxy that already * includes the full `/v1/...` path downstream). */ apiPrefix?: string; /** * Default end-user identifier (OpenAI-compat `user`). When set, every * SDK call (`chatCompletions`, `createTask`, `createMission`) will carry * it as default — pass per-call `user` to override. * * Wire this from your auth provider (Supabase, Clerk, NextAuth) so the * Polpo client always knows which end-user is acting: * * ```tsx * const { user } = useSupabaseUser(); * * ``` * * Updates propagate without rebuilding the client — only the default value * changes, so React Query caches and SSE connections stay alive. */ user?: string; children: ReactNode; autoConnect?: boolean; eventFilter?: string[]; } export declare function PolpoProvider({ baseUrl, apiKey, fetch, apiPrefix, user, children, autoConnect, eventFilter, }: PolpoProviderProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=polpo-provider.d.ts.map