import { _ as ToolId, a as InspectResult, g as SwitchOptions, h as SettingsResult, i as EditOptions, n as ConfigObject, p as SettingsListData, u as Scope } from "./types-KR94Pl4P.js"; import { n as SettingsAdapter } from "./interfaces-CpcX0CPB.js"; //#region src/services/settings/adapters/base.d.ts /** * Abstract adapter implementation */ declare abstract class BaseAdapter implements SettingsAdapter { abstract readonly toolId: ToolId; /** * Methods every adapter must implement */ abstract resolvePath(scope: Scope): string; abstract validateScope(scope: Scope): boolean; /** * Validate scope and resolve path in one call - eliminates repetitive validation code */ protected validateAndResolvePath(scope: Scope): string; /** * List all configuration entries for a scope */ list(scope: Scope): Promise; /** * Default switchProfile implementation (throws unless overridden) */ switchProfile(_scope: Scope, _profile: string, _options?: SwitchOptions): Promise; /** * Inspect the configuration file */ inspect(scope: Scope, _name?: string): Promise; /** * Default edit implementation (throws unless overridden) */ edit(_scope: Scope, _options: EditOptions): Promise; /** * Read the configuration file (subclasses may override) */ protected readConfig(path: string): TConfig; /** * Write the configuration file (subclasses may override) */ protected writeConfig(path: string, data: TConfig, backup?: boolean): void; } //#endregion export { BaseAdapter as t };