//@ts-ignore import { ComponentType, ReactElement, ReactNode } from 'react'; export declare const isString: (value: any) => boolean; export declare const isNull: (value: any) => boolean; export declare const isUndefined: (value: any) => value is undefined; export declare const isObject: (value: any) => boolean; export declare const noop: () => any; export declare const returnFalse: () => boolean; export declare const stringify: (value: any) => string; export declare const swap: (arr: any[], i: number, j: number) => any[]; export declare const createPortalRoot: (rootId: string, modifier: string) => HTMLDivElement; export declare const getColumnClass: (columnsAmount: number) => string; export declare const getRandomString: () => string; /** Helper providing methods for comparing a type of ReactElement with component constructor */ export declare const componentType: { /** Adds a static property `_componentType_` to component constructor. Value of `name` argument must be unique among other component constructors */ set(Component: ComponentType, name: string): void; /** Gets a static property `_componentType_` from component. Used internally by `is` method */ get(Component: ReactElement['type']): string | undefined; /** Compares two components by their `_componentType_` static property */ is(Component1: ReactElement['type'], Component2: ComponentType): boolean; }; export type ARIALabelContextType = { labelId?: string; labelText?: string; labelFor?: string; }; export type ARIALabels = { /** Sets aria-label attribute */ ariaLabel?: string; /** Sets aria-labelledby attribute */ ariaLabelledBy?: string; }; export declare const getAriaLabel: (label?: string, ariaLabel?: string) => string | undefined; export declare const setAriaProps: (props: T, { labelId, labelText, labelFor }: ARIALabelContextType) => T; export type Omit = Pick>; export type Exclude = T extends U ? never : T; export type PropsWithDefaults = Omit & Required> & { children?: ReactNode; }; export type StaticDefaultProps = Required>; export type AnyObject = Record; export type Action = { type: T; payload: P; };