import type { FASTElement, ViewTemplate } from '@microsoft/fast-element'; import type { AnnotatedStoryFn, Args, ComponentAnnotations, Renderer, StoryAnnotations } from '@storybook/types'; /** * A helper that returns a function to bind a Storybook story to a ViewTemplate. * * @param template - The ViewTemplate to render * @returns - a function to bind a Storybook story */ export declare function renderComponent(template: ViewTemplate): (args: TArgs) => Element | DocumentFragment | null; /** * A helper that returns a function to bind a Storybook story to a ViewTemplate. */ export type FASTFramework = { component: typeof FASTElement; storyResult: FASTElement | Element | DocumentFragment; canvasElement: Renderer['canvasElement']; }; /** * Metadata to configure the stories for a component. */ export type Meta = ComponentAnnotations>; /** * Story function that represents a CSFv3 component example. */ export declare type StoryObj = StoryAnnotations; /** * Story function that represents a CSFv2 component example. */ export declare type StoryFn = AnnotatedStoryFn; /** * Story function that represents a CSFv2 component example. * * NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type. */ export declare type Story = StoryFn>; /** * Combined Storybook story args. */ export type StoryArgs = Partial> & Args; //# sourceMappingURL=helpers.d.ts.map