import type { PluginInput } from "@opencode-ai/plugin"; export interface Deduplication { enabled: boolean; protectedTools: string[]; } export interface DiscardTool { enabled: boolean; } export interface ExtractTool { enabled: boolean; showDistillation: boolean; } export interface ToolSettings { nudgeEnabled: boolean; nudgeFrequency: number; protectedTools: string[]; } export interface Tools { settings: ToolSettings; discard: DiscardTool; extract: ExtractTool; } export interface Commands { enabled: boolean; protectedTools: string[]; } export interface SupersedeWrites { enabled: boolean; } export interface PurgeErrors { enabled: boolean; turns: number; protectedTools: string[]; } export interface TurnProtection { enabled: boolean; turns: number; } export interface TokenBudget { enabled: boolean; warnThreshold: number; criticalThreshold: number; } export interface PluginConfig { enabled: boolean; debug: boolean; pruneNotification: "off" | "minimal" | "detailed"; commands: Commands; turnProtection: TurnProtection; tokenBudget: TokenBudget; protectedFilePatterns: string[]; tools: Tools; strategies: { deduplication: Deduplication; supersedeWrites: SupersedeWrites; purgeErrors: PurgeErrors; }; } /** * Threshold for triggering normal nudge based on prunable tool count. * This value is also used in system prompts (N+ outputs rule). */ export declare const PRUNABLE_TOOL_THRESHOLD = 8; export declare const VALID_CONFIG_KEYS: Set; export declare function getInvalidConfigKeys(userConfig: Record): string[]; export declare function getConfig(ctx: PluginInput): PluginConfig; //# sourceMappingURL=config.d.ts.map