import type { AgentSession } from "../../session/agent-session.js"; import type { AuthStorage, OAuthAccountIdentity, StoredAuthCredential } from "../../session/auth-storage.js"; import type { LogoutAccount } from "@oh-my-pi/pi-tui/overlays/logout-account-selector"; interface LogoutAccountOptions { activeIdentity?: OAuthAccountIdentity; activeApiKey?: boolean; } export declare function toLogoutAccounts(provider: string, credentials: StoredAuthCredential[], options?: LogoutAccountOptions): LogoutAccount[]; /** Stored accounts `/logout` can remove for `provider`, active first. Reloads the store to see other processes' changes. */ export declare function listLogoutAccounts(authStorage: AuthStorage, loginProvider: string, sessionId: string): Promise; /** * Removes one stored credential and refreshes the provider's models. * `removed: false` means the credential was already gone; `remainingSource` * names the auth source that still authenticates the provider, if any. */ export declare function logoutCredential(session: Pick, loginProvider: string, credentialId: number): Promise<{ removed: boolean; remainingSource?: string; }>; export {};