import * as React from 'react'; interface KnobOption { value: T, type: 'text' | 'boolean' | 'number' | 'color' | 'object' | 'select' | 'date', } interface StoryContext { kind: string, story: string, } interface NumberOptions { range: boolean, min: number, max: number, step: number, } export function knob(name: string, options: KnobOption): T; export function text(name: string, value: string | null): string; export function boolean(name: string, value: boolean): boolean; export function number(name: string, value: number, options?: NumberOptions): number; export function color(name: string, value: string): string; export function object(name: string, value: T): T; export function select(name: string, options: { [s: string]: T }, value: string): T; export function select(name: string, options: string[], value: string): string; export function date(name: string, value?: Date): Date; interface IWrapStoryProps { context?: Object; storyFn?: Function; channel?: Object; knobStore?: Object; initialContent?: Object; } export function withKnobs(storyFn: Function, context: StoryContext): React.ReactElement; export function withKnobsOptions(options: Object): (storyFn: Function, context: StoryContext) => React.ReactElement;