/** * Runner for SearchFlowApp * * Provides the public API for running the search flow. */ import type { CitationKeyFormat } from "../../../config/schema.js"; import type { CslItem } from "../../../core/csl-json/types.js"; import type { SearchResult } from "../../search/types.js"; import type { ActionMenuResult } from "../action-menu.js"; /** * Configuration for the search flow */ export interface SearchFlowConfig { /** Maximum number of results to display */ limit: number; /** Debounce delay in milliseconds for search filtering */ debounceMs: number; /** Default citation key format */ defaultKeyFormat?: CitationKeyFormat; /** Default citation style */ defaultStyle?: string; } /** * Search function type for filtering references */ export type SearchFunction = (query: string) => SearchResult[]; /** * Run the search flow (search → action → style if needed) * * This is the main entry point for the `search -t` command. */ export declare function runSearchFlow(allReferences: CslItem[], searchFn: SearchFunction, config: SearchFlowConfig): Promise; //# sourceMappingURL=runSearchFlow.d.ts.map