UNPKG

647 BTypeScriptView Raw
1import { Channel } from '@storybook/channels';
2import KnobStore from './KnobStore';
3import { Knob, KnobType, Mutable } from './type-defs';
4interface KnobManagerOptions {
5 escapeHTML?: boolean;
6 disableDebounce?: boolean;
7}
8export default class KnobManager {
9 knobStore: KnobStore;
10 channel: Channel | undefined;
11 options: KnobManagerOptions;
12 calling: boolean;
13 setChannel(channel: Channel): void;
14 setOptions(options: KnobManagerOptions): void;
15 getKnobValue({ value }: Knob): any;
16 knob<T extends KnobType = any>(name: string, options: Knob<T>): Mutable<Knob<T>['value']>;
17 _mayCallChannel(): void;
18}
19export {};