/**
* 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
*/
import type { UnsafeHtmlMarker } from './unsafe-html';
/**
* A value that can be interpolated into a {@link storyHtml} template.
*
* Primitive values are coerced to strings; arrays are flattened; functions are
* invoked and their return values are recursively resolved. {@link unsafeHtml}
* markers bypass sanitization for the wrapped fragment.
*/
export type StoryValue = string | number | boolean | null | undefined | UnsafeHtmlMarker | 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;
//# sourceMappingURL=story-html.d.ts.map