/** * Browser helpers for the agent loop limit ("Max iterations"): how many * steps one response may take before it pauses. The organization's for * members of one (owners and admins change it), otherwise the user's own. * The agent reads and changes the same value with `manage-agent-loop-settings`. */ /** Other surfaces showing the limit listen for this and read `detail`. */ export declare const AGENT_LOOP_SETTINGS_CHANGED_EVENT = "agent-loop-settings:changed"; export interface AgentLoopSettingsStatus { maxIterations: number; defaultMaxIterations: number; minMaxIterations: number; maxMaxIterations: number; scope: "org" | "user" | "default"; source: "org" | "user" | "env" | "default"; /** Owners and admins of the organization, or a user with no organization. */ canUpdate: boolean; orgId: string | null; } export declare function fetchAgentLoopSettings(): Promise; /** * Save the limit. The server refuses members of an organization and values * outside `minMaxIterations`–`maxMaxIterations`, and the refusal is thrown. */ export declare function saveAgentLoopMaxIterations(maxIterations: number): Promise;