/** * Resolve working directory from arguments or environment. * Priority: --cwd flag > CODEDEV_CWD env > process.cwd() * @returns The resolved working directory path. */ export declare function resolveCwd(): string; /** * Resolve multiple root directories from arguments or environment. * Multi-root: --roots=dir1,dir2 or CODEDEV_ROOTS env (comma-separated) * @returns An array of resolved root directory paths. */ export declare function resolveRoots(): string[]; export declare const CWD: string; export declare const ROOTS: string[]; export declare const IS_MULTI_ROOT: boolean; /** * Path security: prevent directory traversal. * Ensures the resolved path is within one of the configured roots. * @param userPath - The user-provided path to validate. * @returns The resolved and validated path. */ export declare function safePath(userPath: string): string; /** * Resolve a path relative to the best matching root. * @param userPath - The user-provided path to resolve. * @returns An object containing the matched root and resolved path. */ export declare function resolveToRoot(userPath: string): { root: string; resolved: string; }; //# sourceMappingURL=config.d.ts.map