import type { Option, OptionsGroup, Search, SelectedOption } from './types';
export declare const createOption: (label: string, options: (Option | OptionsGroup)[]) => {
    value: string;
    label: string;
    custom: boolean;
}[];
export declare const filterOptionsList: (search: string, _options: (Option | OptionsGroup)[]) => any[];
export declare const flattenOptionsArray: (options: (Option | OptionsGroup)[], keepGroupLabel?: boolean) => (Option | OptionsGroup)[];
export declare const getNextSibling: (elem: HTMLElement, selector?: string) => Element | null | undefined;
export declare const getOptionsList: (container: HTMLElement) => HTMLElement[];
export declare const getPreviousSibling: (elem: HTMLElement, selector?: string) => Element | null | undefined;
export declare const isExternalSearch: (search: Search) => boolean;
export declare const isGlobalSearch: (search: Search) => boolean;
export declare const selectOptions: (multiple: boolean, options: (Option | OptionsGroup)[], selected: SelectedOption[], deselected?: Option[]) => SelectedOption[];
