/** * Path utilities for vector store operations * Enables efficient path-based filtering using indexed segments */ /** * Decompose a file path into indexed segments for efficient filtering * Returns an object like { '0': 'src', '1': 'components', '2': 'Button.tsx' } * * This allows Qdrant to filter by path prefix efficiently using payload indexes * e.g., find all files in "src/components/" by matching pathSegments.0='src' AND pathSegments.1='components' */ export declare function decomposePathIntoSegments(filePath: string, maxDepth?: number): Record; /** * Build a Qdrant filter for path prefix matching * Returns filter conditions that match pathSegments at each level * * @param prefix - Directory prefix like "src/components" or "lib/" * @returns Qdrant filter conditions array */ export declare function buildPathPrefixFilter(prefix: string): Array<{ key: string; match: { value: string; }; }>; /** * Extract directory prefix from a file path * e.g., "src/components/Button.tsx" -> "src/components" */ export declare function getDirectoryPrefix(filePath: string): string; /** * Check if a path matches a given prefix * Used for validation and testing */ export declare function pathMatchesPrefix(filePath: string, prefix: string): boolean; /** * Get common path prefix from multiple paths * Useful for determining optimal search scope */ export declare function findCommonPrefix(paths: string[]): string; //# sourceMappingURL=path-utils.d.ts.map