import type { SettingsScopeSnapshot } from '@deepseek-ai/dsh-client-runtime/client'; export type FieldKind = 'text' | 'number' | 'boolean' | 'select'; export type FieldKey = 'provider' | 'model' | 'timeoutMs' | 'maxOutputTokens' | 'maxEvidenceBytes' | 'maxActionBytes' | 'maxTranscriptEntries' | 'maxEntryBytes' | 'reviewShell' | 'reviewNetwork' | 'reviewMcp' | 'reviewGenericApproval' | 'trajectoryEnabled' | 'manualOverride' | 'auditEnabled' | 'auditPath' | 'auditDetail' | 'auditMaxBytes' | 'maxAuditRecordBytes'; export type VisibleFieldKey = Exclude; export interface Field { readonly key: VisibleFieldKey; readonly label: string; readonly type: FieldKind; readonly hint?: string; readonly min?: number; readonly max?: number; readonly options?: readonly (readonly [string, string])[]; } export type Draft = Record; export type StorageKey = Exclude | 'route'; export type FieldGroupId = 'model' | 'scope' | 'evidence' | 'approval' | 'audit'; export interface FieldGroup { readonly id: FieldGroupId; readonly label: string; readonly fields: readonly VisibleFieldKey[]; readonly storage: readonly StorageKey[]; } export interface SettingsValue { readonly route?: { readonly provider: string; readonly model: string; }; readonly [key: string]: unknown; } export interface SettingsSnapshot extends Omit, 'base' | 'user'> { readonly base?: SettingsValue; readonly user?: Record; } export type SettingOperation = { readonly field: string; readonly kind: 'unset'; } | { readonly field: string; readonly kind: 'set'; readonly value: unknown; }; export declare const FIELDS: ({ key: "provider"; label: string; type: "text"; hint: string; options?: undefined; min?: undefined; max?: undefined; } | { key: "model"; label: string; type: "text"; hint: string; options?: undefined; min?: undefined; max?: undefined; } | { key: "timeoutMs"; label: string; type: "number"; min: number; max: number; hint?: undefined; options?: undefined; } | { key: "maxOutputTokens"; label: string; type: "number"; min: number; max: number; hint?: undefined; options?: undefined; } | { key: "maxEvidenceBytes"; label: string; type: "number"; min: number; max: number; hint?: undefined; options?: undefined; } | { key: "maxActionBytes"; label: string; type: "number"; min: number; max: number; hint?: undefined; options?: undefined; } | { key: "maxTranscriptEntries"; label: string; type: "number"; min: number; max: number; hint?: undefined; options?: undefined; } | { key: "maxEntryBytes"; label: string; type: "number"; min: number; max: number; hint?: undefined; options?: undefined; } | { key: "reviewShell"; label: string; type: "boolean"; hint?: undefined; options?: undefined; min?: undefined; max?: undefined; } | { key: "reviewNetwork"; label: string; type: "boolean"; hint?: undefined; options?: undefined; min?: undefined; max?: undefined; } | { key: "reviewMcp"; label: string; type: "boolean"; hint?: undefined; options?: undefined; min?: undefined; max?: undefined; } | { key: "reviewGenericApproval"; label: string; type: "boolean"; hint?: undefined; options?: undefined; min?: undefined; max?: undefined; } | { key: "manualOverride"; label: string; type: "select"; options: [string, string][]; hint?: undefined; min?: undefined; max?: undefined; } | { key: "auditEnabled"; label: string; type: "boolean"; hint?: undefined; options?: undefined; min?: undefined; max?: undefined; } | { key: "auditPath"; label: string; type: "text"; hint: string; options?: undefined; min?: undefined; max?: undefined; } | { hint?: undefined; key: "auditDetail"; label: string; type: "select"; options: [string, string][]; min?: undefined; max?: undefined; } | { hint?: undefined; options?: undefined; key: "auditMaxBytes"; label: string; type: "number"; min: number; max: number; } | { hint?: undefined; options?: undefined; key: "maxAuditRecordBytes"; label: string; type: "number"; min: number; max: number; })[]; export declare function fieldFor(key: VisibleFieldKey): Field; export declare const FIELD_GROUPS: ({ id: "model"; label: string; fields: ("maxOutputTokens" | "model" | "provider" | "timeoutMs")[]; storage: ("maxOutputTokens" | "route" | "timeoutMs")[]; } | { id: "scope"; label: string; fields: ("reviewGenericApproval" | "reviewMcp" | "reviewNetwork" | "reviewShell")[]; storage: ("reviewGenericApproval" | "reviewMcp" | "reviewNetwork" | "reviewShell")[]; } | { id: "evidence"; label: string; fields: ("maxActionBytes" | "maxEntryBytes" | "maxEvidenceBytes" | "maxTranscriptEntries")[]; storage: ("maxActionBytes" | "maxEntryBytes" | "maxEvidenceBytes" | "maxTranscriptEntries")[]; } | { id: "approval"; label: string; fields: "manualOverride"[]; storage: "manualOverride"[]; } | { id: "audit"; label: string; fields: ("auditDetail" | "auditEnabled" | "auditMaxBytes" | "auditPath" | "maxAuditRecordBytes")[]; storage: ("auditDetail" | "auditEnabled" | "auditMaxBytes" | "auditPath" | "maxAuditRecordBytes")[]; })[]; export declare function narrowSnapshot(snapshot: SettingsScopeSnapshot): SettingsSnapshot; export declare function valuesToDraft(value: SettingsValue | undefined): Draft; export declare function storageKeyFor(field: VisibleFieldKey): StorageKey; export declare function inheritedFieldValue(snapshot: SettingsSnapshot, field: VisibleFieldKey): string; export declare function hasOwn(value: unknown, field: string): boolean; export declare function validateDraft(draft: Draft): string | undefined;