export type Theme = "light" | "dark";
export type EnterBehavior = "send" | "newline";

export interface AppSettings {
  theme: Theme;
  enterBehavior: EnterBehavior;
  version: number;
  model?: string;
}

export interface LegacySettings {
  theme?: Theme;
  enterBehavior?: EnterBehavior;
}

export interface SettingsContextType {
  settings: AppSettings;
  theme: Theme;
  enterBehavior: EnterBehavior;
  toggleTheme: () => void;
  toggleEnterBehavior: () => void;
  updateSettings: (updates: Partial<AppSettings>) => void;
}

// Default settings
export const DEFAULT_SETTINGS: AppSettings = {
  theme: "light",
  enterBehavior: "send",
  version: 1,
  model: undefined,
};

// Current settings version for migration
export const CURRENT_SETTINGS_VERSION = 1;
