import { ModelEntry } from './models'; import { AgentConfig } from './agents'; import { SynthOSConfig } from './init'; export interface ServiceConfig { apiKey: string; enabled: boolean; } export type ServicesConfig = { [serviceId: string]: ServiceConfig; }; export type { ModelEntry } from './models'; /** * V1 settings shape (flat, single model). Used as migration source. */ export interface SettingsV1 { serviceApiKey: string; model: string; imageQuality: 'standard' | 'hd'; instructions?: string; logCompletions?: boolean; theme?: string; services?: ServicesConfig; } /** * V2 settings shape with versioned models array. */ export interface CacheSettings { enabled: boolean; } export interface PersonalInfo { name?: string; address?: string; details?: string; } export interface BusinessInfo { name?: string; locations?: string; hours?: string; details?: string; } export interface UserProfile { personal?: PersonalInfo; business?: BusinessInfo; } export interface SettingsV2 { version: 2; theme: string; models: ModelEntry[]; features: string[]; services?: ServicesConfig; connectors?: ServicesConfig; agents?: AgentConfig[]; toolbarPosition?: 'left' | 'right'; cache?: CacheSettings; profile?: UserProfile; } export declare const DefaultSettings: SettingsV2; /** * Find a model entry by its `use` field. Falls back to default if not found. */ export declare function getModelEntry(settings: SettingsV2, use: 'builder' | 'chat'): ModelEntry; export declare function hasConfiguredSettings(config: SynthOSConfig): Promise; export declare function loadSettings(config: SynthOSConfig): Promise; export declare function saveSettings(config: SynthOSConfig, settings: Partial): Promise; /** * Render the user profile as markdown for injection into the builder's * context section. Each field is optional; sections with no * filled fields are omitted entirely. Returns an empty string when nothing * would be rendered. */ export declare function renderUserProfile(profile: UserProfile | undefined): string; //# sourceMappingURL=settings.d.ts.map