import type { AutocompleteItem, AutocompleteProvider } from "@earendil-works/pi-tui"; import type { KeybindingsManager } from "@earendil-works/pi-coding-agent"; import type { FinderOperationError, RuntimeInitializationError } from "../errors.js"; import type { AppResult } from "../result-utils.js"; import type { FffFileCandidate } from "../types.js"; type TrackableAutocompleteProvider = AutocompleteProvider & { getForceFileSuggestions?: (lines: string[], cursorLine: number, cursorCol: number) => { items: AutocompleteItem[]; prefix: string; } | null; shouldTriggerFileCompletion?: (lines: string[], cursorLine: number, cursorCol: number) => boolean; }; export type PathAutocompleteRuntime = { searchFileCandidates: (query: string, limit?: number) => Promise>; trackQuery: (query: string, selectedPath: string) => Promise>; warm?: (timeoutMs?: number) => Promise>; }; type AutocompleteKeybindings = Pick; export declare function extractAtPathPrefix(text: string): string | null; export declare function shouldTriggerAtPathAutocomplete(data: string, textBeforeCursor: string, keybindings: AutocompleteKeybindings): boolean; export declare function wrapAutocompleteProviderWithAtPathSupport(provider: AutocompleteProvider, runtime: PathAutocompleteRuntime): TrackableAutocompleteProvider; export {}; //# sourceMappingURL=autocomplete-at-path.d.ts.map