import React from 'react';
import { Observable } from 'rxjs';
export interface IAutocompleteItem<P = any> {
    name: string;
    disabled?: boolean;
    value: P;
}
export declare type IComponentAutoCompleteAs<P> = {
    _handleInputChange: (text: string) => void;
    _openAutoComplete: () => void;
    _closeAutoComplete: () => void;
    _loading: boolean;
} & P;
export declare type IRefAutoCompleteAs = {
    onSelect: (item: IAutocompleteItem) => void;
};
export declare type IPropsAutoComplete<P> = {
    renderRow?: (name: string, item: IAutocompleteItem, active: boolean, disabled: boolean) => JSX.Element;
    fetchItems?: (text: string) => Observable<IAutocompleteItem[]>;
    items?: IAutocompleteItem[];
    initialSearch?: string;
    onSelect?: (select: string, item: IAutocompleteItem) => void;
    cleanItemsAfterSelect?: boolean;
    persistOpenAutoCompleteItemsAfterSelect?: boolean;
    NotFoundComponent?: React.ComponentType<any>;
    setError?: (error?: any) => any;
} & P;
export declare type IPropsAutoCompletePure<P> = IPropsAutoComplete<P> & {
    as: React.ComponentType<IComponentAutoCompleteAs<P>>;
};
//# sourceMappingURL=AutocompletePure.interface.d.ts.map