UNPKG

701 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 disableForceUpdate?: boolean;
8}
9export default class KnobManager {
10 knobStore: KnobStore;
11 channel: Channel | undefined;
12 options: KnobManagerOptions;
13 calling: boolean;
14 setChannel(channel: Channel): void;
15 setOptions(options: KnobManagerOptions): void;
16 getKnobValue({ value }: Knob): any;
17 knob<T extends KnobType = any>(name: string, options: Knob<T>): Mutable<Knob<T>['value']>;
18 _mayCallChannel(): void;
19}
20export {};