import { z } from "zod"; export declare const CONFIG_PRECEDENCE_SCHEMA_VERSION = "1.0.0"; /** * Validates a config precedence level: any non-empty string. Previously a * fixed enum of 8 known levels, now softened to accept future OpenCode * config levels without rejecting valid configs. * * Known values (for reference): managed_preferences, managed_config, * inline_config, opencode_dir, project_config, custom_config, global_config, * remote_config */ export declare const ConfigPrecedenceLevelSchema: z.ZodString; export type ConfigPrecedenceLevel = z.infer; /** * Records where a specific config value originated: the key path, * resolved value, precedence level, and optional filesystem path. */ export declare const ConfigSourceSchema: z.ZodObject<{ key: z.ZodString; value: z.ZodUnknown; source: z.ZodString; filePath: z.ZodOptional; }, z.core.$strict>; export type ConfigSource = z.infer; /** Lenient variant that strips unknown fields instead of rejecting them. */ export declare const ConfigSourceSchemaLenient: z.ZodObject<{ key: z.ZodString; value: z.ZodUnknown; source: z.ZodString; filePath: z.ZodOptional; }, z.core.$strip>; export type ConfigSourceLenient = z.infer; /** * Schema for the `opencode.json` / `opencode.jsonc` configuration file. * Sub-sections are intentionally opaque (`z.unknown()`) at this level — * dedicated schemas (e.g. `MCPServerRegistrySchema`) validate them when * accessed by name. */ export declare const OpenCodeConfigSchema: z.ZodObject<{ $schema: z.ZodOptional; agent: z.ZodOptional>; command: z.ZodOptional>; permission: z.ZodOptional>; plugin: z.ZodOptional>; mcp: z.ZodOptional>; instructions: z.ZodOptional>; default_agent: z.ZodOptional; theme: z.ZodOptional>; provider: z.ZodOptional>; }, z.core.$strict>; export type OpenCodeConfig = z.infer; /** Lenient variant that strips unknown fields instead of rejecting them. */ export declare const OpenCodeConfigSchemaLenient: z.ZodObject<{ $schema: z.ZodOptional; agent: z.ZodOptional>; command: z.ZodOptional>; permission: z.ZodOptional>; plugin: z.ZodOptional>; mcp: z.ZodOptional>; instructions: z.ZodOptional>; default_agent: z.ZodOptional; theme: z.ZodOptional>; provider: z.ZodOptional>; }, z.core.$strip>; export type OpenCodeConfigLenient = z.infer; //# sourceMappingURL=config-precedence.schema.d.ts.map