import Component from '@glimmer/component';
interface PromiseProxy<T> extends Promise<T> {
    content: any;
}
interface Select {
    selected: any;
    actions: {
        search: (str: string) => void;
    };
}
export interface EuiComboBoxSignature {
    Element: HTMLDivElement;
    Args: {
        singleSelection?: boolean | {
            asPlainText?: boolean;
        };
        onCreateOption?: (search: string) => boolean | undefined;
        options: any[];
        search?: (term: string, select: Select) => any[] | PromiseProxy<any[]>;
        searchField?: string;
        isInvalid?: boolean;
        fullWidth?: boolean;
        searchMessage?: string;
        searchEnabled?: boolean;
        isClearable?: boolean;
        isLoading?: boolean;
        isDisabled?: boolean;
        readOnly?: boolean;
        searchMessageComponent?: any;
        compressed?: boolean;
        onFocus?: (e: FocusEvent) => void;
        onBlur?: (e: FocusEvent) => void;
        onClose?: (e: Event) => void;
        onOpen?: (e: Event) => void;
        renderInPlace?: boolean;
        customOptionText?: string;
        dropdownClass?: string;
        selectedOptions?: any[];
        onChange: (selected: any[]) => void;
        placeholder?: string;
        extra?: any;
    };
    Blocks: {
        default: [any, number, Select];
    };
}
interface Sliceable<T> {
    slice(): T[];
}
export declare const toPlainArray: <T>(collection: Sliceable<T> | T[]) => T[];
export default class EuiComboBoxComponent extends Component<EuiComboBoxSignature> {
    select: any;
    private _resolvedOptions?;
    searchText: string;
    private _searchResult?;
    private _filterResultsCache;
    get opts(): any;
    get options(): any[];
    get results(): any[];
    scrollTo(option: any, select: {
        results: [];
        uniqueId: string;
    }): void;
    registerAPI(select: Select): void;
    onChange(selected: any[]): any[];
    onCreateOption(): any;
    buildSelection(option: any, select: Select): any;
}
export {};
//# sourceMappingURL=eui-combo-box.d.ts.map