import { Component } from 'solid-js'; import { PreviewAddon, InferTypes, AddonTypes, Preview, Meta, Story } from 'storybook/internal/csf'; import { ProjectAnnotations, Args, DecoratorFunction, ArgsStoryFn, ComponentAnnotations, StoryAnnotations, Renderer } from 'storybook/internal/types'; import { f as Simplify, A as AddMocks, g as SetOptional, O as OmitIndexSignature, U as UnionToIntersection } from '../applyDecorators-DC5hSK5q.js'; import { S as SolidRenderer } from '../types-vFmObJUf.js'; declare function definePreview[]>(input: { addons: Addons; } & ProjectAnnotations>): SolidPreview>; /** @ts-expect-error We cannot implement the meta faithfully here, but that is okay. */ interface SolidPreview extends Preview { meta: , TMetaArgs extends Partial>(meta: { render?: ArgsStoryFn; component?: Component; decorators?: Decorators | Decorators[]; args?: TMetaArgs; } & Omit, 'decorators' | 'component' | 'args' | 'render'>) => SolidMeta>>>; }, { args: Partial extends TMetaArgs ? Record : TMetaArgs; }>; } type DecoratorsArgs = UnionToIntersection ? TArgs : unknown>; interface SolidMeta> /** @ts-expect-error hard */ extends Meta { story: ( SolidRenderer['storyResult']) | (StoryAnnotations & { render?: () => SolidRenderer['storyResult']; })>(story?: TInput) => SolidStory SolidRenderer['storyResult'] ? { render: TInput; } : TInput>) & (, SetOptional>>>(story?: TInput /** @ts-expect-error hard */ ) => SolidStory); } interface SolidStory> extends Story { Component: Component>; } export { type SolidPreview, type SolidStory, definePreview };