export type FileCandidateKind = 'file' | 'directory'; export interface FileCandidate { id: string; path: string; displayPath: string; name: string; kind: FileCandidateKind; score: number; } /** * One `@` completion snapshot for the current directory. `done: false` keeps * selection disabled while a provider is loading entries; `done: true` marks * the complete current-level listing. */ export interface FileCandidateProgress { candidates: readonly FileCandidate[]; done: boolean; } export declare function isPathLikeQuery(query: string): boolean; export declare function substringMatchScore(query: string, candidate: string): number | undefined; export declare function rankFileCandidates(candidates: readonly FileCandidate[], query: string, topK?: number): FileCandidate[]; /** * Identity-preserving selection for a refreshed candidate list: keep the row * whose id survived the refresh, otherwise clamp the previous index into the * new list. Selection is tracked by id because a progressively growing list * shifts every index below a newly discovered better match. */ export declare function preserveSelectionById(previousId: string | undefined, next: readonly FileCandidate[], fallback?: number): number; //# sourceMappingURL=fileSuggestions.d.ts.map