/* * check usage examples in ./example/typescript-example.tsx */ import * as React from 'react'; interface PropConstraints { readonly value?: string | number; readonly onChange: React.ChangeEventHandler; } export type DebounceInputProps = WrappedComponentProps & { readonly element?: string | React.ComponentType>; readonly type?: string; readonly onChange: React.ChangeEventHandler; readonly onKeyDown?: React.KeyboardEventHandler; readonly onBlur?: React.FocusEventHandler; readonly value?: string | number; readonly placeholder?: string | number; readonly minLength?: number; readonly debounceTimeout?: number; readonly forceNotifyByEnter?: boolean; readonly forceNotifyOnBlur?: boolean; readonly inputRef?: React.Ref; }; export declare class DebounceInput< WrappedComponent = HTMLInputElement, WrappedComponentProps = React.InputHTMLAttributes > extends React.PureComponent> { } export type Debounced< WrappedComponent, WrappedComponentProps > = React.ComponentType>; export type DebounceTextArea = Debounced< HTMLTextAreaElement, React.TextareaHTMLAttributes >;