/** * Storybook template helpers for authoring bQuery component stories. * * `storyHtml` mirrors bQuery's string-based `html` tag while adding support for * Storybook-friendly boolean attribute shorthand (`?disabled=${true}`). * * @module bquery/storybook */ type StoryValue = string | number | boolean | null | undefined | StoryValue[] | (() => StoryValue); /** * Tagged template literal for Storybook render functions. * * Supports boolean attribute shorthand compatible with Storybook's string * renderer: * * ```ts * storyHtml`Save`; * // => 'Save' * ``` * * @param strings - Template literal string parts * @param values - Interpolated values * @returns HTML string compatible with `@storybook/web-components` */ export declare const storyHtml: (strings: TemplateStringsArray, ...values: StoryValue[]) => string; /** * Conditionally render a value or template fragment. * * @param condition - Condition that controls rendering * @param truthyValue - Value or callback rendered when the condition is truthy * @param falsyValue - Optional value or callback rendered when the condition is falsy * @returns Rendered string fragment, or an empty string when the condition is * falsy and no fallback is provided */ export declare const when: (condition: unknown, truthyValue: StoryValue, falsyValue?: StoryValue) => string; export {}; //# sourceMappingURL=index.d.ts.map