import type { AuthOAuthProviderId } from '@ankhorage/contracts'; import React from 'react'; import type { StoredOAuthCredentialLink } from './pages/adminAuthCredentialFlow'; import { type AuthAdminWriteResult } from './pages/adminAuthSessionModel'; export interface AuthAdminSessionValue { readonly projectId: string; readonly pendingCredentialLinks: readonly StoredOAuthCredentialLink[]; readonly busyCredentialProviderIds: ReadonlySet; readonly busyCredentialRefs: ReadonlySet; readonly busyCredentialSecretCleanupRefs: ReadonlySet; readonly fullAuthSaveBusy: boolean; readonly authWriteBusy: boolean; readonly setPendingCredentialLink: (link: StoredOAuthCredentialLink) => void; readonly clearPendingCredentialLink: (providerId: AuthOAuthProviderId) => void; readonly clearPendingCredentialLinksByCredentialsRef: (credentialsRef: string) => readonly StoredOAuthCredentialLink[]; readonly runFullAuthSave: (operation: () => Promise) => Promise>; readonly runCredentialTransaction: (providerId: AuthOAuthProviderId, credentialsRef: string, operation: () => Promise) => Promise>; readonly runCredentialSecretCleanup: (credentialsRef: string, operation: () => Promise) => Promise>; } export declare function AuthAdminSessionProvider(props: { readonly projectId: string; readonly children: React.ReactNode; }): React.JSX.Element; export declare function useAuthAdminSession(): AuthAdminSessionValue; //# sourceMappingURL=AuthAdminSession.d.ts.map