/** * Gets the index of a value from an array of item values. * Returns the index if found, otherwise tries to parse as number, * or returns 0 as fallback. */ export declare function getIndexFromValue(value: string, itemValues: string[]): number; /** * Gets the value at a specific index from an array of item values. * Returns the value if index is valid, otherwise returns String(index). */ export declare function getValueFromIndex(index: number, itemValues: string[]): string; /** * Registers a select item in the context arrays. * Inserts the item at the specified index position in the arrays. */ export declare function registerItem(params: { index: number; itemRef: { value: HTMLElement | undefined; }; itemValue: string; disabled: boolean | undefined; itemRefsArray: { value: Array<{ value: HTMLElement | undefined; }>; }; itemValuesArray: { value: string[]; }; itemDisabledArray: { value: boolean[]; }; }): void;