/** * Path-segment-aware workspace matching for project context resolution. */ /** * Normalize a workspace path: strip trailing slashes (preserving root "/"). */ export declare function normalizeWorkspacePath(p: string): string; /** * Check if `queryPath` is inside (or equal to) `storedPath`. * Uses path-segment-aware comparison to prevent "/Users/ryan" matching "/Users/ryan.ryn". */ export declare function matchWorkspace(queryPath: string, storedPath: string): boolean; export interface WorkspaceProject { slug: string; workspacePaths: string[]; } /** Discriminated union result for findBestMatch. */ export type FindMatchResult = { kind: "match"; slug: string; matchedPath: string; } | { kind: "none"; } | { kind: "ambiguous"; slugs: string[]; }; /** * Find the best matching project for a query path. * Returns the project with the longest matching workspace path (most specific). * Returns { kind: "none" } if no match, { kind: "ambiguous", slugs } if multiple * projects match at the same prefix length. */ export declare function findBestMatch(queryPath: string, projects: WorkspaceProject[]): FindMatchResult; //# sourceMappingURL=workspace-match.d.ts.map