123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import { Channel } from '@storybook/channels';
- export { E as EventMap, H as HooksContext, L as Listener, k as applyHooks, u as useArgs, a as useCallback, b as useChannel, c as useEffect, d as useGlobals, e as useMemo, f as useParameter, g as useReducer, h as useRef, i as useState, j as useStoryContext } from './hooks-655fa363.js';
- import { Addon_StoryWrapper } from '@storybook/types';
- declare class AddonStore {
- constructor();
- private channel;
- /**
- * @deprecated will be removed in 8.0, please use channel instead
- */
- private serverChannel;
- private promise;
- private resolve;
- getChannel: () => Channel;
- /**
- * @deprecated will be removed in 8.0, please use getChannel instead
- */
- getServerChannel: () => Channel;
- ready: () => Promise<Channel>;
- hasChannel: () => boolean;
- /**
- * @deprecated will be removed in 8.0, please use the normal channel instead
- */
- hasServerChannel: () => boolean;
- setChannel: (channel: Channel) => void;
- /**
- * @deprecated will be removed in 8.0, please use the normal channel instead
- */
- setServerChannel: (channel: Channel) => void;
- }
- declare const addons: AddonStore;
- type MakeDecoratorResult = (...args: any) => any;
- interface MakeDecoratorOptions {
- name: string;
- parameterName: string;
- skipIfNoParametersOrOptions?: boolean;
- wrapper: Addon_StoryWrapper;
- }
- declare const makeDecorator: ({ name, parameterName, wrapper, skipIfNoParametersOrOptions, }: MakeDecoratorOptions) => MakeDecoratorResult;
- declare function mockChannel(): Channel;
- export { AddonStore, MakeDecoratorOptions, MakeDecoratorResult, addons, makeDecorator, mockChannel };
|