1 | import { Channel } from '@storybook/channels';
|
2 | import KnobStore from './KnobStore';
|
3 | import { Knob, KnobType, Mutable } from './type-defs';
|
4 | interface KnobManagerOptions {
|
5 | escapeHTML?: boolean;
|
6 | disableDebounce?: boolean;
|
7 | }
|
8 | export 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 | }
|
19 | export {};
|