import icons, { IconProps } from '@repay/cactus-icons'; import { ComponentType, JSXElementConstructor, ReactElement } from 'react'; declare type ArgType = Record; declare type ArgTypes = Record; interface StoryFn

{ (args: P): ReactElement; argTypes?: { [K in keyof P]?: ArgType; }; args?: Partial

; parameters?: Record; storyName?: string; } export declare type Story = C extends ComponentType ? StoryFn> : C extends JSXElementConstructor ? StoryFn> : StoryFn; declare type ActionFn = (arg: A) => void; export interface ActionWrap { (fn: ActionFn): ActionFn; (fn: ActionFn, simplifyChangeEvent: true): ActionFn; (...labels: string[]): ActionFn; } export interface Action extends ActionFn { wrap: ActionWrap; } interface ActionConfig { name: string; wrapper?: boolean; label?: string; } declare type ActionParam = ActionConfig | string; export declare const HIDE_CONTROL: ArgType; export declare const STRING: ArgType; export declare const SPACE: ArgType; export declare const HIDE_STYLED: ArgTypes; export declare const FIELD_ARGS: ArgTypes; export declare type Icon = (props: IconProps) => ReactElement; export declare type IconName = keyof typeof icons; export declare const ICON_ARG: { readonly name: "icon"; readonly control: "select"; readonly options: string[]; readonly mapping: typeof icons; readonly defaultValue: "ActionsAdd"; }; export declare const actions: (...args: ActionParam[]) => ArgTypes; export {};