import { C as ClientApi } from './ClientApi-24d2bfd0.js'; export { S as StoryStore } from './StoryStore-f7424ddf.js'; import { Renderer, ProjectAnnotations, ArgsStoryFn } from '@storybook/types'; import 'synchronous-promise'; import './hooks-655fa363.js'; interface CoreClient_RendererImplementation { /** * A function that applies decorators to a story. * @template TRenderer The type of renderer used by the Storybook client API. * @type {ProjectAnnotations['applyDecorators']} */ decorateStory?: ProjectAnnotations['applyDecorators']; /** * A function that renders a story with args. * @template TRenderer The type of renderer used by the Storybook client API. * @type {ArgsStoryFn} */ render?: ArgsStoryFn; } interface CoreClient_ClientAPIFacade { /** * The old way of adding stories at runtime. * @deprecated This method is deprecated and will be removed in a future version. */ storiesOf: (...args: any[]) => never; /** * The old way of retrieving the list of stories at runtime. * @deprecated This method is deprecated and will be removed in a future version. */ raw: (...args: any[]) => never; } interface CoreClient_StartReturnValue { /** * Forces a re-render of all stories in the Storybook preview. * This function emits the `FORCE_RE_RENDER` event to the Storybook channel. * @deprecated This method is deprecated and will be removed in a future version. * @returns {void} */ forceReRender: () => void; /** * The old way of setting up storybook with runtime configuration. * @deprecated This method is deprecated and will be removed in a future version. * @returns {void} */ configure: any; /** * @deprecated This property is deprecated and will be removed in a future version. * @type {ClientApi | CoreClient_ClientAPIFacade} */ clientApi: ClientApi | CoreClient_ClientAPIFacade; } /** * Initializes the Storybook preview API. * @template TRenderer The type of renderer used by the Storybook client API. * @param {ProjectAnnotations['renderToCanvas']} renderToCanvas A function that renders a story to a canvas. * @param {CoreClient_RendererImplementation} [options] Optional configuration options for the renderer implementation. * @param {ProjectAnnotations['applyDecorators']} [options.decorateStory] A function that applies decorators to a story. * @param {ArgsStoryFn} [options.render] A function that renders a story with arguments. * @returns {CoreClient_StartReturnValue} An object containing functions and objects related to the Storybook preview API. */ declare function start(renderToCanvas: ProjectAnnotations['renderToCanvas'], { decorateStory, render }?: CoreClient_RendererImplementation): CoreClient_StartReturnValue; export { ClientApi, start };