// Type definitions for @storybook/addon-info 3.4 // Project: https://github.com/storybooks/storybook // Definitions by: Mark Kornblum // Mattias Wikstrom // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; import { RenderFunction } from '@storybook/react'; export interface WrapStoryProps { storyFn?: RenderFunction; context?: object; options?: object; } export interface Options { text?: string; header?: boolean; inline?: boolean; source?: boolean; propTables?: React.ComponentType[] | false; propTablesExclude?: React.ComponentType[]; styles?: object; marksyConf?: object; maxPropsIntoLine?: number; maxPropObjectKeys?: number; maxPropArrayLength?: number; maxPropStringLength?: number; } export function withInfo(textOrOptions?: string | Options): (storyFn: RenderFunction) => (context?: object) => React.ReactElement; export function setDefaults(newDefaults: Options): Options;