import type { LoadedConfiguration } from './configuration.js'; export declare const exitWithError: (message: string, code?: number) => never; export declare const loadConfigOrExit: (configPath?: string, options?: { allowMissing?: boolean; }) => Promise; export declare const parseGitModeOrExit: (value?: string) => "ai" | "list" | undefined; /** * Convenience guard that exits with an error if the condition is falsy. * Keeps command handlers concise while preserving existing exit behaviour. */ export declare const ensureOrExit: (condition: any, message: string, code?: number) => void; //# sourceMappingURL=shared.d.ts.map