/** * Interactive search prompt using React Ink * * Provides real-time incremental search with multiple selection support. */ import type { CslItem } from "../../core/csl-json/types.js"; import type { SearchResult } from "../search/types.js"; import { calculateEffectiveLimit, getTerminalHeight, getTerminalWidth } from "./components/index.js"; /** * Configuration for the search prompt */ export interface SearchPromptConfig { /** Maximum number of results to display */ limit: number; /** Debounce delay in milliseconds (not used in Ink version, kept for API compatibility) */ debounceMs: number; } /** * Search function type for filtering references */ export type SearchFunction = (query: string) => SearchResult[]; /** * Result from the search prompt */ export interface SearchPromptResult { /** Selected references */ selected: CslItem[]; /** Whether the prompt was cancelled */ cancelled: boolean; } export { calculateEffectiveLimit, getTerminalHeight, getTerminalWidth }; /** * Creates and runs an interactive search prompt */ export declare function runSearchPrompt(allReferences: CslItem[], searchFn: SearchFunction, config: SearchPromptConfig, _initialQuery?: string): Promise; //# sourceMappingURL=search-prompt.d.ts.map