import { d as StoryContext, R as RenderContext, D as Decorator, e as applyDecorators } from './applyDecorators-DC5hSK5q.js'; import * as storybook_internal_csf from 'storybook/internal/csf'; import { Args, ArgsStoryFn } from 'storybook/internal/types'; import { a as StoryFnReturnType, S as SolidRenderer } from './types-vFmObJUf.js'; /** * Mount function for mounting the story to the canvas. * Called each time component should be mounted or updated. */ declare const mount: (context: StoryContext) => (ui: StoryFnReturnType) => Promise; /** * Main renderer function for initializing the SolidJS app with the story content. * * How this works is a bit different from the React renderer. * In React, components run again on rerender so the React renderer just recalls the component, * but Solid has fine-grained reactivity so components run once, * and when dependencies are updated, effects/tracking scopes run again. * * So, we can store args in a store and just update the store when this function is called. * However, we also need to re-run the story function to pick up changes in decorators * and global settings, similar to how the Vue renderer handles this. */ declare function renderToCanvas(renderContext: RenderContext, canvasElement: SolidRenderer['canvasElement']): Promise<() => void>; /** * Default render function for a story definition (inside a csf file) without * a render function. e.g: * ```typescript * export const StoryExample = { * component: Button, * args: { * disabled: true, * children: "Hello World", * }, * }; * ``` */ declare const render: ArgsStoryFn; declare const parameters: { renderer: string; }; declare const decorators: Decorator[]; declare const beforeAll: () => Promise; declare const entryPreview_applyDecorators: typeof applyDecorators; declare const entryPreview_beforeAll: typeof beforeAll; declare const entryPreview_decorators: typeof decorators; declare const entryPreview_mount: typeof mount; declare const entryPreview_parameters: typeof parameters; declare const entryPreview_render: typeof render; declare const entryPreview_renderToCanvas: typeof renderToCanvas; declare namespace entryPreview { export { entryPreview_applyDecorators as applyDecorators, entryPreview_beforeAll as beforeAll, entryPreview_decorators as decorators, entryPreview_mount as mount, entryPreview_parameters as parameters, entryPreview_render as render, entryPreview_renderToCanvas as renderToCanvas }; } export { renderToCanvas as a, beforeAll as b, decorators as d, entryPreview as e, mount as m, parameters as p, render as r };