import type { AuthNoticeAction } from '../../core/types/agent-types.js'; import type { CortexEvent, EventBus } from '../../events/index.js'; import type { ButtonElement, PlatformAdapter } from '../../platform/index.js'; import { type AuthStatusSnapshot } from './auth-status.js'; type AuthRequiredEvent = Extract; export interface AuthWatchDependencies { now?: () => number; readStatus?: () => Promise; buildPlatformAction?: (action: AuthNoticeAction, channel: string, noticeText: string) => ButtonElement; } export type WasAuthRecentlyNotified = (backend: AuthRequiredEvent['backend'], provider: string) => boolean; export declare function wasAuthRecentlyNotified(backend: AuthRequiredEvent['backend'], provider: string): boolean; export declare function registerAuthWatch(bus: EventBus, adapter: PlatformAdapter, dependencies?: AuthWatchDependencies): void; export {};