import { ChCheckboxCustomEvent, ComboBoxModel, TreeViewItemModel } from "@genexus/chameleon-controls-library";
export type ChCheckboxArray = HTMLChCheckboxElement[] | null;
import { GxOption } from "./types";
/**
 * @param element an HTMLElement
 * @returns an alphabetically ordered array of all the parts and exportparts the element contains.
 */
export declare const getElementSelectorParts: (element: HTMLElement) => string[];
/**
 * @param selector a part selector
 * @returns A reference to the element the part belongs to.
 */
export declare const querySelectorPart: (selector: string) => HTMLElement;
export declare const formatDate: (date: Date, type?: FormatDateType) => string;
export type FormatDateType = "date" | "date-time" | "date-time-short" | "pretty";
export declare const countTreeItems: (treeModel: TreeViewItemModel[], children?: boolean) => number;
/**
 * @description it evaluates the initial selected combo item
 * @param options an array of GxOption
 * @returns the initial combo value, which in this case is the id
 */
export declare const setInitialComboValue: (options: GxOption[]) => string;
export declare const escapeRegExp: (str: string) => string;
/**
 * @description this function highlights the character(s) that match(es) the filter value.
 * hiChar comes from (hi)light (Char)acters
 * @param text the string to find the filter value on
 * @param filterValue the filter value
 * @returns a span element
 */
export declare const hiChar: (text: string, filterValue: string) => any;
export declare const closeOnOutsideClickHandler: (eventInfo: PointerEvent, ref: HTMLElement) => true | void;
export declare const mapOptionsToComboBoxItemModel: (options: GxOption[]) => ComboBoxModel;
export declare const renderChCheckboxItems: (options: GxOption[] | undefined, frontEndCheckboxInputHandler: (event: ChCheckboxCustomEvent<string> | InputEvent) => void, checkedIds: string[]) => HTMLChCheckboxElement[];
