/** * The current app's default agent model (browser). * * Named client helper for `/_agent-native/agent-model-defaults`, the setting * behind `agent-app-model-default:`. The agent changes the same value * with `manage-agent-engine` (`get-app-default`, `set-app-default`, * `reset-app-default`); UI code calls these instead of hand-writing a fetch. */ export interface AppModelDefaultEngine { name: string; label: string; defaultModel: string; /** The models the picker offers, after the provider's model selection. */ supportedModels: string[]; packageInstalled?: boolean; configured: boolean; } export interface AppModelDefaultSelection { engine: string; model: string; } export interface AppModelDefaultState { appId: string; /** The app's own default; both `null` when it uses the organization's. */ engine: string | null; model: string | null; source: "org" | "user" | "default"; /** Owners and admins, or a signed-in user with no organization. */ canUpdate: boolean; orgName?: string | null; /** * The organization's default model, which applies while the app sets none. * `null` when nobody chose one; absent from servers that don't report it. */ orgDefault?: { engine: string; model: string | null; } | null; engines: AppModelDefaultEngine[]; } export declare function fetchAppModelDefault(): Promise; /** Owners and admins only; the server answers 403 for everyone else. */ export declare function saveAppModelDefault(selection: AppModelDefaultSelection): Promise; /** Clear the app's own default so it uses the organization's again. */ export declare function resetAppModelDefault(): Promise;