export type CodexPermissionId = "read_only" | "ask_for_approval" | "approve_for_me" | "full_access"; export interface CodexPermissionRow { readonly id: CodexPermissionId; readonly label: string; readonly description: string; readonly current: boolean; readonly index: number; } export type CodexPermissionSurface = { readonly state: "picker"; readonly rows: readonly CodexPermissionRow[]; readonly selectedIndex: number; readonly fingerprint: string; } | { readonly state: "full_access_confirmation"; readonly selectedIndex: number; readonly fingerprint: string; } | { readonly state: "none" | "ambiguous"; readonly reason?: string; }; /** Closed built-in picker grammar; supported versions live in terminal-permission-control. */ export declare function observeCodexPermissionSurface(styledScreen: string, agentVersion?: string): CodexPermissionSurface;