import type { CliProcess } from "./CliProcess.js"; /** The file a directory is expected to hold, when no other is named. */ export declare const DEFAULT_CONFIG_FILE = "agentsafe.yaml"; export declare class ConfigFileError extends Error { readonly code: "CONFIG_FILE_NOT_FOUND" | "CONFIG_FILE_UNREADABLE" | "CONFIG_FILE_NOT_YAML"; readonly path: string; constructor(code: "CONFIG_FILE_NOT_FOUND" | "CONFIG_FILE_UNREADABLE" | "CONFIG_FILE_NOT_YAML", path: string); } export interface LoadedConfigFile { readonly path: string | null; readonly document: unknown; } /** The file to read: `--config`, then `AGENTSAFE_CONFIG`, then `./agentsafe.yaml` if it exists. */ export declare function locateConfigFile(io: CliProcess, flag: string | undefined): string | null; /** * Reads and parses the file. A named file that is missing is a refusal; the * conventional one is simply absent. The document is handed to the loader * as data, which is where its shape is checked and refused by key. */ export declare function loadConfigFile(io: CliProcess, flag: string | undefined): LoadedConfigFile; //# sourceMappingURL=ConfigFile.d.ts.map