import { type PluginConfig } from './schema'; export declare const MAX_CONFIG_FILE_BYTES = 102400; /** * Structured error log entry for config loading failures. */ export interface ConfigLoadErrorLog { timestamp: string; filePath: string; errorCode: string | null; errorName: string; message: string; } /** * Log a structured error when config loading fails. * Exported for testing purposes. */ export declare function logConfigLoadError(filePath: string, error: unknown): void; /** * Options for deepMerge function. */ export interface DeepMergeOptions { enforceKeyFiltering?: boolean; } /** * Deep merge two objects, with override values taking precedence. * Arrays are replaced, not merged. * * When enforceKeyFiltering is enabled, keys like __proto__, constructor, and prototype * are skipped to prevent prototype pollution attacks. */ export declare function deepMerge(base?: T, override?: T, options?: DeepMergeOptions): T | undefined; /** * Load plugin configuration from user and project config files. * * Config locations: * 1. User config: ~/.config/opencode/opencode-writer-swarm.json * 2. Project config: /.opencode/opencode-writer-swarm.json * * Project config takes precedence. */ export declare function loadPluginConfig(directory: string): PluginConfig; /** * Load prompt file from prompts/ directory */ export declare function loadPrompt(name: string): string; /** * Load reference file from references/ directory */ export declare function loadReference(name: string): string;