export declare function setRoots(newRoots: { uri: string; name?: string; }[]): void; export declare function getRoots(): { uri: string; name?: string; }[]; /** * Get the primary root path from the global roots, fallback to project root */ export declare function getPrimaryRootPath(): string; /** * Resolve a primary root path from a provided roots array, fallback to project root */ export declare function getPrimaryRootPathFrom(providedRoots?: { uri: string; name?: string; }[]): string; /** * Resolve the working directory from instance roots, falling back to global roots and project root. * This is the canonical way to determine the working directory for CLI commands. * * Resolution order: * 1. Instance-specific roots (if provided and non-empty) * 2. Global roots from RootContext * 3. Project root as final fallback * * @param instanceRoots Optional instance-specific roots to prefer over global roots * @returns The resolved working directory path */ export declare function resolveWorkingDirectory(instanceRoots?: { uri: string; name?: string; }[]): string; //# sourceMappingURL=rootContext.d.ts.map