/** * Return the workspace root. * * If no directory is supplied, defaults to `process.cwd()`. Callers that * already know their root should pass it explicitly. */ export declare function root(cwd?: string): string; /** * Resolve one or more path segments relative to the workspace root. */ export declare function resolve(rootDir: string, ...segments: string[]): string;