import { Decorator, Loader, Meta, Preview, StencilRenderer, StoryContext, StoryFn, StoryObj, StorybookConfig } from "./types-BZP9npQ9.cjs"; import { NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations } from "storybook/internal/types"; import { JsonDocs } from "@stencil/core/internal"; //#region @types/rollup-parseAst.d.ts /** * Extra type definitions for rollup/parseAst in cases the Rollup version between * `@stencil/storybook-plugin` and `unplugin-stencil` is different. This may cause * the following type error: * * ``` * [ ERROR ] TypeScript: node_modules/vite/dist/node/index.d.ts:5:41 * Cannot find module 'rollup/parseAst' or its corresponding type * declarations. * * L4: export { rollup as Rollup }; * L5: export { parseAst, parseAstAsync } from 'rollup/parseAst'; * L6: import * as http from 'node:http'; * ``` * * This file is a workaround to make sure the type definitions are available when * importing `rollup/parseAst` in `unplugin-stencil`. */ declare module 'rollup/parseAst' { export function parseAst(code: string, options?: any): any; export function parseAstAsync(code: string, options?: any): Promise; } //#endregion //#region src/framework-api.d.ts declare function isValidComponent(tagName: string): boolean; declare function isValidMetaData(customElements: JsonDocs): boolean; /** @param customElements `any` for now as spec is not super stable yet */ declare function setCustomElements(customElements: any): void; declare function setCustomElementsManifest(customElements: any): void; declare function getCustomElements(): any; //# sourceMappingURL=framework-api.d.ts.map //#endregion //#region src/portable-stories.d.ts /** * Function that sets the globalConfig of your storybook. The global config is the preview module of * your .storybook folder. * * It should be run a single time, so that your global config (e.g. decorators) is applied to your * stories when using `composeStories` or `composeStory`. * * Example: * * ```jsx * // setup-file.js * import { setProjectAnnotations } from '@storybook/web-components'; * import projectAnnotations from './.storybook/preview'; * * setProjectAnnotations(projectAnnotations); * ``` * * @param projectAnnotations - E.g. (import projectAnnotations from '../.storybook/preview') */ declare function setProjectAnnotations(projectAnnotations: NamedOrDefaultProjectAnnotations | NamedOrDefaultProjectAnnotations[]): NormalizedProjectAnnotations>; //# sourceMappingURL=portable-stories.d.ts.map //#endregion export { Decorator, Loader, Meta, Preview, StencilRenderer, StoryContext, StoryFn, StoryObj, StorybookConfig, getCustomElements, isValidComponent, isValidMetaData, setCustomElements, setCustomElementsManifest, setProjectAnnotations }; //# sourceMappingURL=index.d.cts.map