/** * @fileoverview Pure grouping/filtering for the AI-prompt selector. Extracted for unit-testability. * @module @memberjunction/ng-entity-action-ux */ /** A flat prompt option from the metadata view. */ export interface PromptOption { ID: string; Name: string; Category: string; } /** A category group of prompts (preserves the encounter order of categories). */ export interface PromptGroup { Category: string; Prompts: PromptOption[]; } /** Groups prompts by their category name (blank → "Uncategorized"), preserving input order. */ export declare function groupPromptsByCategory(prompts: PromptOption[]): PromptGroup[]; /** Case-insensitive name filter that drops emptied groups. */ export declare function filterPromptGroups(groups: PromptGroup[], query: string): PromptGroup[]; //# sourceMappingURL=prompt-grouping.d.ts.map