/** * Resolve a path to its canonical (real) form, following symlinks. * Falls back to the raw path if resolution fails (e.g. the target does * not exist yet), so that callers never crash on missing filesystem * entries. */ export declare function canonicalizePath(path: string): string; /** * Whether `target` is `root` itself or sits inside it. * * Segment-aware, so `/a/bc` is not treated as being inside `/a/b`. Four private * copies of this predicate already exist (`core/extensions/loader.ts`, * `core/extensions/plugins/install.ts`, `core/skills.ts`, * `core/prompt-templates.ts`); new callers should use this one. */ export declare function isPathInside(target: string, root: string): boolean; /** * Returns true if the value is NOT a package source (npm:, git:, etc.) * or a URL protocol. Bare names and relative paths without ./ prefix * are considered local. */ export declare function isLocalPath(value: string): boolean; export declare function getCwdRelativePath(filePath: string, cwd: string): string | undefined; export declare function formatPathRelativeToCwdOrAbsolute(filePath: string, cwd: string): string; /** * Collect `.agents//` directories walking from startDir up to the git * root, cwd-first (so a closer dir overrides an ancestor under first-match-wins). * When startDir is not inside a git repo, the walk continues to the filesystem * root, mirroring the agent/skill ancestor scanners. */ export declare function collectAgentsAncestorDirs(startDir: string, subdir: string): string[]; //# sourceMappingURL=paths.d.ts.map