import type { AvSelectItem, AvSelectModelValue, AvSelectOption, AvSelectOptionGroup, AvSelectSelectedOption } from './AvSelect.types.js'; /** * Check if the given option is a group. * @param option The option to check. * @returns True if the option is a group, false otherwise. */ export declare function isOptionGroup(option: AvSelectItem): option is AvSelectOptionGroup; /** * Find the parent ID of an option by its value. * @param options The list of options to search within. * @param value The value of the option. * @returns An object containing the parent ID if found, otherwise an empty object. */ export declare function findParentId(options: AvSelectItem[], value: string | number): { parentId?: string; }; /** * Find an option by its value within a list of options, including nested groups. * @param options The list of options to search within. * @param value The value of the option to find. * @returns The option matching the given value, or undefined if not found. */ export declare function findOptionByValue(options: AvSelectItem[], value: string | number): AvSelectOption | undefined; /** * Build a selected option object by its value, including the parent ID if the option is part of a group. * @param options The list of options to search within. * @param value The value of the option to find. * @returns The selected option with its parent ID if applicable, or undefined if not found. */ export declare function buildSelectedOptionByValue(options: AvSelectItem[], value: string | number): AvSelectSelectedOption | undefined; /** * Get the selected options from the given value, handling both single and array values. * @param value The value representing the selected option(s). * @returns An array of selected options if available, or null if no selection is available. */ export declare function getAvSelectSelectedOptions(value: AvSelectModelValue): AvSelectSelectedOption[] | null; /** * Get the selected option from the given value, handling both single and array values. * @param value The value representing the selected option(s). * @returns The first selected option if the value is an array, the value itself if it's a single option, or null if no selection is available. */ export declare function getAvSelectSelectedOption(value: AvSelectModelValue): AvSelectSelectedOption | null;