import { Modifier, Placement } from "./_modules/@popperjs-core-index"; import { Conditional, Parameters } from '@storybook/csf'; import { Theme } from '@storybook/theming'; import { BuiltInParserName } from "./_modules/@types-prettier-index"; import React from 'react'; import { AnchorHTMLAttributes, ButtonHTMLAttributes, Component, ComponentProps, DetailedHTMLProps, ElementType, FC, FunctionComponent, MouseEvent, MutableRefObject, ReactElement, ReactNode, SyntheticEvent } from 'react'; declare class ZoomIFrame extends Component { iframe: HTMLIFrameElement; componentDidMount(): void; shouldComponentUpdate(nextProps: IZoomIFrameProps): boolean; setIframeInnerZoom(scale: number): void; setIframeZoom(scale: number): void; render(): ReactElement> & import("react").ReactNode; } declare const ButtonWrapper: import("@storybook/theming").StyledComponent, HTMLButtonElement>, ButtonProps, import("@storybook/theming").Theme>; declare const DefaultCodeBlock: import("@storybook/theming").StyledComponent, HTMLElement>, { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; declare const Item: import("@storybook/theming").StyledComponent, HTMLAnchorElement>, ItemProps, import("@storybook/theming").Theme>; declare const LazyColorControl: React.LazyExoticComponent>; declare const LazySyntaxHighlighter: React.LazyExoticComponent>; declare const LazyWithTooltip: React.LazyExoticComponent>; declare const LazyWithTooltipPure: React.LazyExoticComponent>; declare const ProgressWrapper: import("@storybook/theming").StyledComponent, HTMLDivElement>, Pick & React.HTMLAttributes, keyof React.HTMLAttributes>, import("@storybook/theming").Theme>; declare const PureLoader: FunctionComponent>; declare const Svg: import("@storybook/theming").StyledComponent, SvgProps, import("@storybook/theming").Theme>; declare const icons: { mobile: string; watch: string; tablet: string; browser: string; sidebar: string; sidebaralt: string; bottombar: string; useralt: string; user: string; useradd: string; users: string; profile: string; bookmark: string; bookmarkhollow: string; book: string; repository: string; star: string; starhollow: string; circle: string; circlehollow: string; heart: string; hearthollow: string; facehappy: string; facesad: string; faceneutral: string; lock: string; unlock: string; key: string; arrowleftalt: string; arrowrightalt: string; sync: string; reply: string; undo: string; transfer: string; redirect: string; expand: string; expandalt: string; collapse: string; grow: string; arrowleft: string; arrowup: string; arrowdown: string; arrowright: string; chevrondown: string; back: string; download: string; upload: string; proceed: string; info: string; question: string; support: string; alert: string; bell: string; rss: string; edit: string; paintbrush: string; close: string; closeAlt: string; trash: string; cross: string; delete: string; add: string; subtract: string; plus: string; document: string; folder: string; component: string; calendar: string; graphline: string; docchart: string; doclist: string; category: string; grid: string; copy: string; certificate: string; print: string; listunordered: string; graphbar: string; menu: string; filter: string; ellipsis: string; cog: string; wrench: string; nut: string; camera: string; eye: string; eyeclose: string; photo: string; video: string; speaker: string; phone: string; flag: string; pin: string; compass: string; globe: string; location: string; search: string; zoom: string; zoomout: string; zoomreset: string; timer: string; time: string; lightning: string; lightningoff: string; dashboard: string; hourglass: string; play: string; playnext: string; playback: string; stop: string; stopalt: string; rewind: string; fastforward: string; email: string; link: string; paperclip: string; box: string; structure: string; cpu: string; memory: string; database: string; power: string; outbox: string; share: string; button: string; form: string; check: string; batchaccept: string; batchdeny: string; home: string; admin: string; paragraph: string; basket: string; credit: string; shield: string; beaker: string; thumbsup: string; mirror: string; switchalt: string; commit: string; branch: string; merge: string; pullrequest: string; chromatic: string; twitter: string; google: string; gdrive: string; youtube: string; facebook: string; medium: string; graphql: string; redux: string; github: string; bitbucket: string; gitlab: string; azuredevops: string; discord: string; contrast: string; unfold: string; sharealt: string; accessibility: string; accessibilityalt: string; markup: string; outline: string; verified: string; comment: string; commentadd: string; requestchange: string; comments: string; ruler: string; }; declare function ZoomElement({ scale, children }: ZoomProps): JSX.Element; export declare class IFrame extends Component { iframe: any; componentDidMount(): void; shouldComponentUpdate(nextProps: IFrameProps): boolean; setIframeBodyStyle(style: BodyStyle): any; render(): JSX.Element; } export declare class TabsState extends Component { static defaultProps: TabsStateProps; constructor(props: TabsStateProps); handlers: { onSelect: (id: string) => void; }; render(): JSX.Element; } export declare const A: import("@storybook/theming").StyledComponent & { children?: import("react").ReactNode; }, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const ActionBar: FunctionComponent; export declare const AddonPanel: ({ active, children }: AddonPanelProps) => JSX.Element; /** * Display the props for a component as a props table. Each row is a collection of * ArgDefs, usually derived from docgen info for the component. */ export declare const ArgsTable: FC; export declare const Badge: FunctionComponent; export declare const Bar: import("@storybook/theming").StyledComponent, import("@storybook/theming").Theme>; export declare const Blockquote: import("@storybook/theming").StyledComponent, HTMLElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const BooleanControl: FC; export declare const Button: FunctionComponent>; export declare const Code: ({ className, children, ...props }: ComponentProps) => JSX.Element; export declare const ColorControl: (props: ComponentProps) => JSX.Element; /** * A single color row your styleguide showing title, subtitle and one or more colors, used * as a child of `ColorPalette`. */ export declare const ColorItem: FunctionComponent; /** * Styleguide documentation for colors, including names, captions, and color swatches, * all specified as `ColorItem` children of this wrapper component. */ export declare const ColorPalette: FunctionComponent; export declare const DL: import("@storybook/theming").StyledComponent, HTMLDListElement>, { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const DateControl: FC; /** * A markdown description for a component, typically used to show the * components docgen docs. */ export declare const Description: FunctionComponent; export declare const Div: import("@storybook/theming").StyledComponent, HTMLDivElement>, { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const DocsContent: import("@storybook/theming").StyledComponent, HTMLDivElement>, Pick & React.HTMLAttributes, keyof React.HTMLAttributes>, Theme>; export declare const DocsPageWrapper: FC; export declare const DocsWrapper: import("@storybook/theming").StyledComponent, HTMLDivElement>, {}, Theme>; export declare const DocumentWrapper: import("@storybook/theming").StyledComponent, HTMLDivElement>, {}, import("@storybook/theming").Theme>; export declare const FilesControl: FunctionComponent; export declare const FlexBar: FunctionComponent; export declare const Form: import("@storybook/theming").StyledComponent, HTMLFormElement>, Pick & import("react").FormHTMLAttributes, keyof import("react").FormHTMLAttributes>, import("@storybook/theming").Theme> & { Field: import("react").FunctionComponent; Input: import("@storybook/theming").StyledComponent, keyof InputStyleProps> & InputStyleProps, "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "width" | "start" | "open" | "name" | "color" | "content" | "translate" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "disabled" | "multiple" | "manifest" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof InputStyleProps> & import("react").RefAttributes, InputStyleProps, import("@storybook/theming").Theme> & { displayName: string; }; Select: import("@storybook/theming").StyledComponent, keyof InputStyleProps> & InputStyleProps & import("react").RefAttributes, Omit, keyof InputStyleProps> & InputStyleProps, import("@storybook/theming").Theme> & { displayName: string; }; Textarea: import("@storybook/theming").StyledComponent & InputStyleProps & import("react").RefAttributes, Omit & InputStyleProps, import("@storybook/theming").Theme> & { displayName: string; }; Button: import("react").FunctionComponent; }; export declare const H1: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const H2: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const H3: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const H4: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const H5: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const H6: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const HR: import("@storybook/theming").StyledComponent, HTMLHRElement>, Pick & import("react").HTMLAttributes, keyof import("react").HTMLAttributes>, import("@storybook/theming").Theme>; export declare const IconButton: import("@storybook/theming").StyledComponent<(Pick & { ref?: React.Ref; }) | (Pick & { ref?: React.Ref; }), IconButtonProps, import("@storybook/theming").Theme>; /** * Show a grid of icons, as specified by `IconItem`. */ export declare const IconGallery: FunctionComponent; /** * An individual icon with a caption and an example (passed as `children`). */ export declare const IconItem: FunctionComponent; export declare const Icons: React.NamedExoticComponent; export declare const Img: import("@storybook/theming").StyledComponent, HTMLImageElement>, Pick & import("react").ImgHTMLAttributes, keyof import("react").ImgHTMLAttributes>, import("@storybook/theming").Theme>; export declare const LI: import("@storybook/theming").StyledComponent, HTMLLIElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const Link: FunctionComponent; export declare const Loader: FunctionComponent>; export declare const NoControlsWarning: () => JSX.Element; export declare const NumberControl: FC; export declare const OL: import("@storybook/theming").StyledComponent, HTMLOListElement>, { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const ObjectControl: FC; export declare const OptionsControl: FC; export declare const P: import("@storybook/theming").StyledComponent, HTMLParagraphElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const Placeholder: FunctionComponent; export declare const Pre: import("@storybook/theming").StyledComponent, HTMLPreElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; /** * A preview component for showing one or more component `Story` * items. The preview also shows the source for the component * as a drop-down. */ export declare const Preview: FunctionComponent; export declare const PreviewSkeleton: () => JSX.Element; export declare const RangeControl: FC; export declare const ScrollArea: FunctionComponent; export declare const Separator: import("@storybook/theming").StyledComponent, HTMLSpanElement>, SeparatorProps, import("@storybook/theming").Theme>; /** * Syntax-highlighted source code for a component (or anything!) */ export declare const Source: FunctionComponent; export declare const Spaced: FunctionComponent; export declare const Span: import("@storybook/theming").StyledComponent, HTMLSpanElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; /** * A story element, either rendered inline or in an iframe, * with configurable height. */ export declare const Story: FunctionComponent; export declare const StorySkeleton: () => JSX.Element; export declare const StorybookIcon: FunctionComponent<{}>; export declare const StorybookLogo: FunctionComponent; export declare const StyledSyntaxHighlighter: import("@storybook/theming").StyledComponent; export declare const Subtitle: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, {}, Theme>; export declare const Symbols: React.NamedExoticComponent; export declare const SyntaxHighlighter: (props: ComponentProps) => JSX.Element; export declare const TT: import("@storybook/theming").StyledComponent, HTMLTitleElement>, { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const TabBar: import("@storybook/theming").StyledComponent, HTMLDivElement>, Pick & React.HTMLAttributes, keyof React.HTMLAttributes>, import("@storybook/theming").Theme>; export declare const TabButton: import("@storybook/theming").StyledComponent<(Pick & { ref?: React.Ref; }) | (Pick & { ref?: React.Ref; }), TabButtonProps, import("@storybook/theming").Theme>; export declare const TabWrapper: FunctionComponent; export declare const TabbedArgsTable: FC; export declare const Table: import("@storybook/theming").StyledComponent, HTMLTableElement>, { theme: import("@storybook/theming").Theme; } & { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const TableWrapper: import("@storybook/theming").StyledComponent, HTMLTableElement>, { compact?: boolean; inAddonPanel?: boolean; isLoading?: boolean; }, import("@storybook/theming").Theme>; export declare const Tabs: FunctionComponent; export declare const TextControl: FC; export declare const Title: import("@storybook/theming").StyledComponent, HTMLHeadingElement>, {}, Theme>; export declare const TooltipLinkList: FunctionComponent; export declare const TooltipMessage: FunctionComponent; export declare const TooltipNote: FunctionComponent; /** * Convenient styleguide documentation showing examples of type * with different sizes and weights and configurable sample text. */ export declare const Typeset: FunctionComponent; export declare const UL: import("@storybook/theming").StyledComponent, HTMLUListElement>, { theme: import("@storybook/theming").Theme; }, import("@storybook/theming").Theme>; export declare const WithTooltip: (props: ComponentProps) => JSX.Element; export declare const WithTooltipPure: (props: ComponentProps) => JSX.Element; export declare const Zoom: { Element: typeof ZoomElement; IFrame: typeof ZoomIFrame; }; export declare const argsTableLoadingData: ArgsTableDataProps; export declare const components: { h1: (props: import("react").DetailedHTMLProps, HTMLHeadingElement>) => JSX.Element; h2: (props: import("react").DetailedHTMLProps, HTMLHeadingElement>) => JSX.Element; h3: (props: import("react").DetailedHTMLProps, HTMLHeadingElement>) => JSX.Element; h4: (props: import("react").DetailedHTMLProps, HTMLHeadingElement>) => JSX.Element; h5: (props: import("react").DetailedHTMLProps, HTMLHeadingElement>) => JSX.Element; h6: (props: import("react").DetailedHTMLProps, HTMLHeadingElement>) => JSX.Element; pre: (props: import("react").DetailedHTMLProps, HTMLPreElement>) => JSX.Element; a: (props: import("react").DetailedHTMLProps, HTMLAnchorElement>) => JSX.Element; hr: (props: import("react").DetailedHTMLProps, HTMLHRElement>) => JSX.Element; dl: (props: import("react").DetailedHTMLProps, HTMLDListElement>) => JSX.Element; blockquote: (props: import("react").DetailedHTMLProps, HTMLElement>) => JSX.Element; table: (props: import("react").DetailedHTMLProps, HTMLTableElement>) => JSX.Element; img: (props: import("react").DetailedHTMLProps, HTMLImageElement>) => JSX.Element; div: (props: import("react").DetailedHTMLProps, HTMLDivElement>) => JSX.Element; span: (props: import("react").DetailedHTMLProps, HTMLSpanElement>) => JSX.Element; li: (props: import("react").DetailedHTMLProps, HTMLLIElement>) => JSX.Element; ul: (props: import("react").DetailedHTMLProps, HTMLUListElement>) => JSX.Element; ol: (props: import("react").DetailedHTMLProps, HTMLOListElement>) => JSX.Element; p: (props: import("react").DetailedHTMLProps, HTMLParagraphElement>) => JSX.Element; code: (props: import("react").DetailedHTMLProps, HTMLElement>) => JSX.Element; tt: (props: import("react").DetailedHTMLProps, HTMLTitleElement>) => JSX.Element; resetwrapper: (props: import("react").DetailedHTMLProps, HTMLDivElement>) => JSX.Element; }; export declare const format: (value: NumberValue) => string; export declare const formatDate: (value: Date | number) => string; export declare const formatTime: (value: Date | number) => string; export declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record) => string; export declare const interleaveSeparators: (list: any[]) => any; export declare const nameSpaceClassNames: ({ ...props }: { [x: string]: any; }, key: string) => { [x: string]: any; }; export declare const parse: (value: string) => number; export declare const parseDate: (value: string) => Date; export declare const parseTime: (value: string) => Date; export declare const resetComponents: Record; export declare enum ArgsTableError { NO_COMPONENT = "No component found.", ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework." } export declare enum SourceError { NO_STORY = "There\u2019s no story here.", SOURCE_UNAVAILABLE = "Oh no! The source is not available." } export declare enum StoryError { NO_STORY = "No component or story to display" } export declare type AProps = AnchorHTMLAttributes; export declare type Alignments = "end" | "center" | "start"; export declare type ArgsTableProps = ArgsTableOptionProps & (ArgsTableDataProps | ArgsTableErrorProps | ArgsTableLoadingProps); export declare type BooleanProps = ControlProps & BooleanConfig; export declare type BooleanValue = boolean; export declare type ColorControlProps = ControlProps & ColorConfig; export declare type ColorProps = ColorControlProps; export declare type ColorValue = string; export declare type Colors = string[] | { [key: string]: string; }; export declare type Control = BooleanConfig | ColorConfig | DateConfig | NumberConfig | ObjectConfig | OptionsConfig | RangeConfig | TextConfig; export declare type ControlType = "array" | "boolean" | "color" | "date" | "number" | "range" | "object" | OptionsControlType | "text"; export declare type Controls = Record; export declare type DateProps = ControlProps & DateConfig; export declare type DateValue = Date | number; export declare type FuncChildren = () => void; export declare type Globals = { [name: string]: any; }; export declare type IFrameStoryProps = CommonProps; export declare type IZoomIFrameProps = { scale: number; children: ReactElement; iFrameRef: MutableRefObject; active?: boolean; }; export declare type IconKey = keyof typeof icons; export declare type LinkWrapperType = FunctionComponent; export declare type NumberProps = ControlProps & NumberConfig; export declare type NumberValue = number; export declare type ObjectProps = ControlProps & ObjectConfig & { theme: any; }; export declare type ObjectValue = any; export declare type Options = OptionsArray | OptionsObject; export declare type OptionsArray = any[]; export declare type OptionsControlType = "radio" | "inline-radio" | "check" | "inline-check" | "select" | "multi-select"; export declare type OptionsMultiSelection = any[]; export declare type OptionsObject = Record; export declare type OptionsProps = ControlProps & OptionsConfig; export declare type OptionsSelection = OptionsSingleSelection | OptionsMultiSelection; export declare type OptionsSingleSelection = any; export declare type PresetColor = ColorValue | { color: ColorValue; title?: string; }; export declare type PropDefaultValue = PropSummaryValue; export declare type PropType = PropSummaryValue; export declare type RangeConfig = NumberConfig; export declare type RangeProps = ControlProps & RangeConfig; export declare type Sizes = "100%" | "flex" | "auto"; export declare type SortType = "alpha" | "requiredFirst" | "none"; export declare type SourceProps = SourceErrorProps & SourceCodeProps; export declare type StoryProps = InlineStoryProps | IFrameStoryProps; export declare type SyntaxHighlighterFormatTypes = boolean | "dedent" | BuiltInParserName; export declare type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps; export declare type TextProps = ControlProps & TextConfig; export declare type TextValue = string; export declare type ValidationStates = "valid" | "error" | "warn"; export declare type ZoomProps = { scale: number; children: ReactElement | ReactElement[]; }; export declare type lineTagPropsFunction = (lineNumber: number) => React.HTMLProps; export interface ActionBarProps { actionItems: ActionItem[]; } export interface ActionItem { title: string | JSX.Element; className?: string; onClick: (e: MouseEvent) => void; disabled?: boolean; } export interface AddonPanelProps { active: boolean; children: ReactNode; } export interface ArgType { name?: string; description?: string; defaultValue?: any; if?: Conditional; [key: string]: any; } export interface ArgTypes { [key: string]: ArgType; } export interface Args { [key: string]: any; } export interface ArgsTableDataProps { rows: ArgTypes; args?: Args; globals?: Globals; } export interface ArgsTableErrorProps { error: ArgsTableError; } export interface ArgsTableLoadingProps { isLoading: true; } export interface ArgsTableOptionProps { updateArgs?: (args: Args) => void; resetArgs?: (argNames?: string[]) => void; compact?: boolean; inAddonPanel?: boolean; initialExpandedArgs?: boolean; isLoading?: boolean; sort?: SortType; } export interface BadgeProps { status: "positive" | "negative" | "neutral" | "warning" | "critical"; } export interface BarButtonProps extends DetailedHTMLProps, HTMLButtonElement> { href?: void; } export interface BarLinkProps extends DetailedHTMLProps, HTMLAnchorElement> { href: string; } export interface BodyStyle { width: string; height: string; transform: string; transformOrigin: string; } export interface BooleanConfig { } export interface ButtonProps { isLink?: boolean; primary?: boolean; secondary?: boolean; tertiary?: boolean; gray?: boolean; inForm?: boolean; disabled?: boolean; small?: boolean; outline?: boolean; containsIcon?: boolean; children?: ReactNode; href?: string; } export interface ColorConfig { presetColors?: PresetColor[]; startOpen?: boolean; } export interface ColorItemProps { title: string; subtitle: string; colors: Colors; } export interface CommonProps { title?: string; height?: string; id: string; } export interface ControlProps { name: string; value?: T; defaultValue?: T; argType?: ArgType; onChange: (value: T) => T | void; onFocus?: (evt: any) => void; onBlur?: (evt: any) => void; } export interface DateConfig { } export interface DescriptionProps { markdown: string; } export interface DocsPageProps { title: string; subtitle?: string; } export interface FieldProps { label?: ReactNode; } export interface FilesControlProps extends ControlProps { accept?: string; } export interface FlexBarProps { border?: boolean; children?: any; backgroundColor?: string; } export interface IFrameProps { id: string; key?: string; title: string; src: string; allowFullScreen: boolean; scale: number; style?: any; } export interface IconButtonProps { active?: boolean; disabled?: boolean; } export interface IconItemProps { name: string; } export interface IconsProps extends ComponentProps { icon?: IconKey; symbol?: IconKey; } export interface InlineStoryProps extends CommonProps { parameters: Parameters; storyFn: ElementType; } export interface InputStyleProps { size?: Sizes; align?: Alignments; valid?: ValidationStates; height?: number; } export interface ItemProps { disabled?: boolean; } export interface JsDocParam { name: string; description?: string; } export interface JsDocReturns { description?: string; } export interface JsDocTags { params?: JsDocParam[]; returns?: JsDocReturns; } export interface Link extends Omit { id: string; isGatsby?: boolean; onClick?: (event: SyntheticEvent, item: ListItemProps) => void; } export interface LinkInnerProps { withArrow?: boolean; containsIcon?: boolean; } export interface LinkProps extends LinkInnerProps, LinkStylesProps { cancel?: boolean; className?: string; style?: object; onClick?: (e: MouseEvent) => void; href?: string; } export interface LinkStylesProps { secondary?: boolean; tertiary?: boolean; nochrome?: boolean; inverse?: boolean; isButton?: boolean; } export interface ListItemProps extends Omit, "href" | "title"> { loading?: boolean; left?: ReactNode; title?: ReactNode; center?: ReactNode; right?: ReactNode; active?: boolean; disabled?: boolean; href?: string; LinkWrapper?: LinkWrapperType; } export interface LoaderProps { progress?: Progress; error?: Error; size?: number; } export interface NormalizedOptionsConfig { options: OptionsObject; } export interface NumberConfig { min?: number; max?: number; step?: number; } export interface ObjectConfig { } export interface OptionsConfig { labels: Record; options: Options; type: OptionsControlType; } export interface PreviewProps { isLoading?: true; isColumn?: boolean; columns?: number; withSource?: SourceProps; isExpanded?: boolean; withToolbar?: boolean; className?: string; additionalActions?: ActionItem[]; } export interface Progress { value: number; message: string; modules?: { complete: number; total: number; }; } export interface PropSummaryValue { summary: string; detail?: string; required?: boolean; } export interface ScrollAreaProps { horizontal?: boolean; vertical?: boolean; className?: string; } export interface SeparatorProps { force?: boolean; } export interface SourceCodeProps { language?: string; code?: string; format?: ComponentProps["format"]; dark?: boolean; } export interface SourceErrorProps { isLoading?: boolean; error?: SourceError; } export interface SpacedProps { col?: number; row?: number; outer?: number | boolean; } export interface StorybookLogoProps { alt: string; } export interface SvgProps { inline?: boolean; } export interface SymbolsProps extends ComponentProps { icons?: IconKey[]; } export interface SyntaxHighlighterBaseProps { language?: string; style?: any; customStyle?: any; lineProps?: lineTagPropsFunction | React.HTMLProps; codeTagProps?: React.HTMLProps; useInlineStyles?: boolean; showLineNumbers?: boolean; startingLineNumber?: number; lineNumberStyle?: any; } export interface SyntaxHighlighterCustomProps { language: string; copyable?: boolean; bordered?: boolean; padded?: boolean; format?: SyntaxHighlighterFormatTypes; formatter?: (type: SyntaxHighlighterFormatTypes, source: string) => string; className?: string; renderer?: (props: SyntaxHighlighterRendererProps) => ReactNode; } export interface SyntaxHighlighterRendererProps { rows: any[]; stylesheet: string; useInlineStyles: boolean; } export interface TabButtonProps { active?: boolean; textColor?: string; } export interface TabWrapperProps { active: boolean; render?: () => JSX.Element; children?: ReactNode; } export interface TabbedArgsTableProps { tabs: Record; sort?: SortType; } export interface TableAnnotation { type: PropType; jsDocTags?: JsDocTags; defaultValue?: PropDefaultValue; category?: string; } export interface TabsProps { id?: string; tools?: ReactNode; selected?: string; actions?: { onSelect: (id: string) => void; } & Record; backgroundColor?: string; absolute?: boolean; bordered?: boolean; } export interface TabsStateProps { children: (ReactNode | FuncChildren)[]; initial: string; absolute: boolean; bordered: boolean; backgroundColor: string; } export interface TabsStateState { selected: string; } export interface TextConfig { } export interface TooltipLinkListProps { links: Link[]; LinkWrapper?: LinkWrapperType; } export interface TooltipMessageProps { title?: ReactNode; desc?: ReactNode; links?: { title: string; href?: string; onClick?: () => void; }[]; } export interface TooltipNoteProps { note: string; } export interface TypesetProps { fontFamily?: string; fontSizes: string[]; fontWeight?: number; sampleText?: string; } export interface WithHideFn { onHide: () => void; } export interface WithTooltipPureProps { svg?: boolean; trigger?: "none" | "hover" | "click" | "right-click"; closeOnClick?: boolean; placement?: Placement; modifiers?: Array>>; hasChrome?: boolean; tooltip: ReactNode | ((p: WithHideFn) => ReactNode); children: ReactNode; tooltipShown?: boolean; onVisibilityChange?: (visibility: boolean) => void | boolean; onDoubleClick?: () => void; } export {};