import type { AuthLoginProgress, DeviceLoginPendingResult, HumanHandoff } from "@agentxm/registry-access/authentication"; import type { SuggestedAction } from "@agentxm/registry-protocol/unstable/suggested-action"; import type { Doc, WaitView } from "../../screen/index.js"; export interface AuthViewEntry { readonly doc: Doc; readonly persistent?: boolean; } /** Label of the lifecycle unit one sign-in phase runs as. */ export declare const authProgressLabel: (progress: AuthLoginProgress) => string; /** * Lifecycle unit id for one sign-in or verification phase. Ids name the work, * not the progress tag, so a retry reads as a distinct unit. */ export declare const authProgressUnitId: (progress: AuthLoginProgress) => string; /** The one question a session that is still valid raises. */ export declare const existingSessionNote: (handle: string) => AuthViewEntry; export declare const rejectedStoredCredentialsNote: AuthViewEntry; export declare const deviceCodeFallbackNote: (reason: "remote-or-headless" | "loopback-bind-failed") => AuthViewEntry; /** The pages of a pending sign-in, and the command that resumes waiting on it. */ export declare const pendingDeviceSuggestions: (result: DeviceLoginPendingResult) => ReadonlyArray; export declare const loginSuccessSuggestions: { description: string; cmd: string; }[]; /** One handoff as the `Screen` runs it: the brief, the live line, the settled line. */ export declare const handoffWaitView: (handoff: HumanHandoff) => WaitView; /** What `c` copies while one handoff's wait stands open. */ export declare const handoffCopyValue: (handoff: HumanHandoff) => string; /** * The guidance a sign-in nothing will wait on still owes a person: the same * code, links, and warnings the wait would have shown. */ export declare const pendingHandoffBrief: (result: DeviceLoginPendingResult) => Doc; /** * The outcome that sign-in settled on, and the command that resumes it. The * pages to open came with the guidance above it, so only the resume is left. */ export declare const pendingApprovalDoc: (result: DeviceLoginPendingResult) => Doc; export declare const loginSuccessDoc: (result: { readonly registryHost: string; readonly handle?: string | undefined; }) => Doc; export declare const loopbackStartView: (start: { readonly redirectUri: string; readonly authorizeUrl: string; }) => ReadonlyArray; export declare const loopbackBrowserOutcomeView: (opened: boolean) => AuthViewEntry; //# sourceMappingURL=view.d.ts.map