/** * Configuration loader. * * Loads bellwether.yaml configuration. Config file is REQUIRED for running tests. * Use `bellwether init` to create a config file with all options documented. */ import { type BellwetherConfig } from './validator.js'; export type { BellwetherConfig }; /** * Parse a command string into command and arguments. * Handles quoted strings properly for cases like: * "npx @gitkraken/gk@latest" -> { command: "npx", args: ["@gitkraken/gk@latest"] } * "node ./server.js --port 3000" -> { command: "node", args: ["./server.js", "--port", "3000"] } * 'my-cmd "path with spaces"' -> { command: "my-cmd", args: ["path with spaces"] } * * @param commandString - Full command string that may include arguments * @returns Parsed command and arguments */ export declare function parseCommandString(commandString: string): { command: string; args: string[]; }; /** * Error thrown when no config file is found. */ export declare class ConfigNotFoundError extends Error { constructor(searchedPaths?: string[]); } /** * Load configuration from file. Config file is REQUIRED. * * @param explicitPath - Optional explicit path to config file * @returns Validated configuration * @throws ConfigNotFoundError if no config file is found * @throws Error if config file is invalid */ export declare function loadConfig(explicitPath?: string): BellwetherConfig; //# sourceMappingURL=loader.d.ts.map