import { QueryClient } from '@tanstack/react-query'; import { AuthMutationName } from './mutation-effects.js'; export interface AuthMutationCommitEvent { args: unknown; result: unknown; } export interface AuthCacheCoherenceManager { bindAuthClient: (client: unknown) => void; commit: (mutation: AuthMutationName, event: AuthMutationCommitEvent) => Promise; } export declare function extractOrganizationId(args: unknown): string | null | undefined; /** * Resource-cache coherence for Auth UI. * * Writes go through {@link AuthCacheCoherenceManager.commit} so TanStack * Query and the Athena session store stay aligned before the mutation * promise resolves to application code. */ export declare function createAuthCacheCoherenceManager(queryClient: QueryClient): AuthCacheCoherenceManager;