import { z } from "zod"; import { type BuiltinAgentId, type CommandResolverDependencies, type CommandSpec } from "./launch/command-spec.js"; export declare const TRANSPORT_MODES: readonly ["direct", "structured"]; export declare const DEFAULT_CONTEXT_CHARACTERS = 256000; export declare const LEGACY_CONTEXT_CHARACTERS = 48000; export type TransportMode = (typeof TRANSPORT_MODES)[number]; /** Direct is a storage/history discriminator only; every public runtime entry rejects it. */ export declare const TRANSPORT_LIFECYCLE: { readonly direct: "deprecated"; readonly structured: "active"; }; export declare function assertActiveTransport(transport: TransportMode): asserts transport is "structured"; export declare function isBuiltinAgentId(agentId: string): agentId is BuiltinAgentId; declare const groupXConfigSchema: z.ZodObject<{ transport: z.ZodDefault>; server: z.ZodDefault>; port: z.ZodDefault; }, z.core.$strict>>; storage: z.ZodDefault; }, z.core.$strict>>; agents: z.ZodDefault>; name: z.ZodOptional; identity: z.ZodOptional; command: z.ZodPipe>; }, z.core.$strict>]>, z.ZodTransform>; cwd: z.ZodString; enabled: z.ZodDefault; }, z.core.$strict>>, z.ZodTransform<{ [k: string]: { name?: string | undefined; identity?: string | undefined; command: CommandSpec; cwd: string; enabled: boolean; driver: "claude" | "codex" | "grok" | "hermes" | "kimi"; }; }, Record>>>; assistant: z.ZodOptional; name: z.ZodDefault; brain: z.ZodObject<{ driver: z.ZodEnum<{ claude: "claude"; codex: "codex"; grok: "grok"; hermes: "hermes"; kimi: "kimi"; }>; command: z.ZodPipe>; }, z.core.$strict>]>, z.ZodTransform>; cwd: z.ZodString; }, z.core.$strict>; extraInstructions: z.ZodOptional; }, z.core.$strict>>; limits: z.ZodDefault, z.ZodLiteral<32768>]>>; queuePerAgent: z.ZodDefault; rootTurns: z.ZodDefault; hopCount: z.ZodDefault; actorCallsPerRoot: z.ZodDefault; steersPerSubjectTurn: z.ZodDefault; contextCharacters: z.ZodDefault; sseEvents: z.ZodDefault; sseBytes: z.ZodDefault; }, z.core.$strict>>; timeouts: z.ZodDefault; requestMs: z.ZodDefault; firstEventMs: z.ZodDefault; idleMs: z.ZodDefault; cancelMs: z.ZodDefault; closeMs: z.ZodDefault; askMs: z.ZodDefault; watchMs: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; export type GroupXConfig = z.infer; /** Parse a config document without resolving commands or filesystem-relative paths. */ export declare function parseConfigDocument(input: unknown): GroupXConfig; /** Resolve a parsed document for one concrete config-directory/runtime context. */ export declare function resolveConfigDocument(config: GroupXConfig, baseDirectory: string, commandDependencies?: CommandResolverDependencies): GroupXConfig; export declare function defaultConfig(cwd?: string, commandDependencies?: CommandResolverDependencies): GroupXConfig; export declare function loadConfig(configPath?: string, cwd?: string, commandDependencies?: CommandResolverDependencies): Promise; /** * Upgrades values that exactly match an auto-generated default from an older * release to the current default. Any other explicit value stays user-owned; * this mirrors the original 48k context-budget migration precedent. */ export declare function upgradeLegacyGeneratedDefaults(config: GroupXConfig): void; export declare function parseConfigPath(argv: readonly string[]): string | undefined; export {}; //# sourceMappingURL=config.d.ts.map