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 | disableForceUpdate?: boolean;
|
8 | }
|
9 | export 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 | }
|
20 | export {};
|