/** A single styled text run within a suggestion label — either a matched or completion portion. */ export interface Segment { text: string; kind: 'match' | 'completion'; } /** Input accepted by `resolveSuggestionSegments` for pre-computed segment data. */ export interface SegmentResolutionInput { segments?: Segment[]; highlightParts?: Array<{ text: string; isInputMatch: boolean; }>; boldRanges?: Array<{ start: number; end: number; }>; } /** * Computes highlight segments by finding matched character indices of `query` within `label`. * Returns `null` when no match is found. */ export declare function computeHighlightSegments(label: string, query: string): Segment[] | null; /** * Resolves suggestion label segments using a single fallback order: * `segments` -> `highlightParts` -> `boldRanges` -> computed/default fallback. */ export declare function resolveSuggestionSegments( label: string, query: string, input?: SegmentResolutionInput, ): Segment[];