import { TemplateResult } from '../processor/template-result'; /** * A single case in a choose() call: [value, templateFn]. */ export type ChoiceCase = [V, () => T]; /** * Multi-branch conditional rendering directive. * * Evaluates `value` against a list of cases and renders the matching branch. * Only the matched branch's template function is called. * * Usage: * ```ts * html` * ${choose(this.page, [ * ['home', () => html``], * ['about', () => html``], * ['contact', () => html``], * ], () => html``)} * ` * ``` * * @param value - The value to match against cases * @param cases - Array of [matchValue, templateFn] tuples * @param defaultCase - Optional template function when no case matches */ export declare function choose(value: V, cases: ChoiceCase[], defaultCase?: () => T): T | undefined; //# sourceMappingURL=choose.d.ts.map