import React from 'react'; import { IEditable, IAnalyticableOnChange } from '../types'; import { ReactElement } from 'react'; /** * IEditableDebouncer component options. */ export interface IEditableDebouncerOptions { /** Pass true to disable debouncing */ disableDebounce?: boolean; /** Debounce delay in ms. Default value is 500ms */ debounceDelay?: number; } /** * IEditableDebouncer component props. */ export interface IEditableDebouncerProps extends IEditable, IEditableDebouncerOptions, IAnalyticableOnChange { /** * Render wrapped component. * Receives props and forwarded ref as a second parameter. */ render: (props: IEditable, ref: React.Ref) => React.ReactNode; } /** * Wrap other IEditable components into the IEditableDebouncer to debounce onValueChange calls. * Useful for search inputs, or any other components that cause expensive computations on change. * Wrapped component still behaves as controlled component, and will react to external value changes immediately. */ export declare const IEditableDebouncer: (props: IEditableDebouncerProps & { ref?: React.Ref; }) => React.ReactElement | null; //# sourceMappingURL=IEditableDebouncer.d.ts.map