import type { SyntheticEvent } from 'react'; import type { SelectedOption, OptionValueCallback, OptionLabelCallback } from '../types'; /** * Test if typeof parameter is boolean. */ export declare function isBoolean(test: any): boolean; /** * Test if typeof parameter is function. */ export declare function isFunction(test: any): boolean; /** * Test if parameter is an array with at least 1 item. */ export declare function isArrayWithLength(test: any): boolean; /** * Tests for a 'plain, classic' object (non-primitive type that is not an array). */ export declare function isPlainObject(test: any): boolean; /** * Call preventDefault() and stopPropagation() on event. */ export declare const suppressEvent: (e: SyntheticEvent) => void; /** * Apply regex to string, and if the value is NOT case sensitive, * call .toLowerCase() and return result. */ export declare function trimAndFormatFilterStr(value: string, filterIgnoreCase: boolean, filterIgnoreAccents: boolean): string; /** * Builds the className property in Option.tsx component. */ export declare function optionClassNames(isDisabled?: boolean, isSelected?: boolean, isFocused?: boolean): string; /** * Parses an object or an array of objects into output of SelectedOption[]. */ export declare const normalizeValue: (value: any, getOptionValue: OptionValueCallback, getOptionLabel: OptionLabelCallback) => SelectedOption[]; /** * Immutable implementation of mergeDeep for two objects. Will return the merged result. * In first condition of if/else block - check that property is no 'animation', * since we never want to merge that complex styled-component object. */ export declare const mergeDeep: (target: any, source: any) => T;