import type { PluginInput } from '@opencode-ai/plugin'; export interface PluginConfig { enabled: boolean; debug: boolean; model?: string; prompt?: string; updateThreshold: number; excludeDirectories?: string[]; /** * Title format with placeholders: * - {title} - AI-generated title * - {cwd} - Full current working directory path * - {cwdTip} - Last folder name of cwd (e.g., "my-project") * - {cwdTip:N} - Last N folder segments (e.g., {cwdTip:2} -> "github/my-project") * - {cwdTip:N:sep} - Last N segments with custom separator (e.g., {cwdTip:2: - } -> "github - my-project") * - {cwdTip:git} - Segments from git root to cwd (falls back to 1 if no .git found) * - {cwdTip:git:sep} - Same with custom separator */ titleFormat: string; } /** * Loads configuration with support for both global and project-level configs * * Config resolution order: * 1. Start with default config * 2. Merge with global config (~/.config/opencode/smart-title.jsonc) * 3. Merge with project config (.opencode/smart-title.jsonc) if found * * Project config overrides global config, which overrides defaults. * * @param ctx - Plugin input context (optional). If provided, will search for project-level config. * @returns Merged configuration */ export declare function getConfig(ctx?: PluginInput): PluginConfig; //# sourceMappingURL=config.d.ts.map