import { DecoratorFunction, Renderer, StoryContext } from "storybook/internal/types"; //#region \0rolldown/runtime.js //#endregion //#region code/addons/themes/.dts-emit/code/addons/themes/src/types.d.ts interface ThemesParameters$1 { /** * Themes configuration * * @see https://github.com/storybookjs/storybook/blob/next/code/addons/themes/README.md */ themes?: { /** Remove the addon panel and disable the addon's behavior */disable?: boolean; /** Which theme to override for the story */ themeOverride?: string; }; } interface ThemesGlobals { /** Which theme to override for the story */ theme?: string; } interface ThemesTypes { parameters: ThemesParameters$1; globals: ThemesGlobals; } //#endregion //#region code/addons/themes/.dts-emit/code/addons/themes/src/decorators/class-name.decorator.d.ts interface ClassNameStrategyConfiguration { themes: Record; defaultTheme: string; parentSelector?: string; } declare const withThemeByClassName: ({ themes, defaultTheme, parentSelector }: ClassNameStrategyConfiguration) => DecoratorFunction; //#endregion //#region code/addons/themes/.dts-emit/code/addons/themes/src/decorators/data-attribute.decorator.d.ts interface DataAttributeStrategyConfiguration { themes: Record; defaultTheme: string; parentSelector?: string; attributeName?: string; } declare const withThemeByDataAttribute: ({ themes, defaultTheme, parentSelector, attributeName }: DataAttributeStrategyConfiguration) => DecoratorFunction; //#endregion //#region code/addons/themes/.dts-emit/code/addons/themes/src/decorators/provider.decorator.d.ts type Theme = Record; type ThemeMap = Record; interface ProviderStrategyConfiguration { Provider?: any; GlobalStyles?: any; defaultTheme?: string; themes?: ThemeMap; } declare const withThemeFromJSXProvider: ({ Provider, GlobalStyles, defaultTheme, themes }: ProviderStrategyConfiguration) => DecoratorFunction; declare namespace helpers_d_exports { export { initializeThemeState, pluckThemeFromContext, useThemeParameters }; } type ThemesParameters = ThemesParameters$1['themes']; /** * @param StoryContext * @returns The global theme name set for your stories */ declare function pluckThemeFromContext({ globals }: StoryContext): string; declare function useThemeParameters(context?: StoryContext): ThemesParameters; declare function initializeThemeState(themeNames: string[], defaultTheme: string): void; //#endregion //#region code/addons/themes/.dts-emit/code/addons/themes/src/index.d.ts declare function _default(): import("storybook/internal/csf").PreviewAddon; //#endregion export { ClassNameStrategyConfiguration, DataAttributeStrategyConfiguration, helpers_d_exports as DecoratorHelpers, ProviderStrategyConfiguration, type ThemesGlobals, type ThemesTypes, _default as default, withThemeByClassName, withThemeByDataAttribute, withThemeFromJSXProvider };