import { Q2Btn } from "../components/q2-btn/q2-btn"; import { Q2Calendar } from "../components/q2-calendar/q2-calendar"; import { Q2Carousel } from "../components/q2-carousel/q2-carousel"; import { Q2Checkbox } from "../components/q2-checkbox/q2-checkbox"; import { Q2CheckboxGroup } from "../components/q2-checkbox-group/q2-checkbox-group"; import { Q2RadioGroup } from "../components/q2-radio-group/q2-radio-group"; import { Q2Dropdown } from "../components/q2-dropdown/q2-dropdown"; import { Q2DropdownItem } from "../components/q2-dropdown-item/q2-dropdown-item"; import { Q2EditableField } from "../components/q2-editable-field/q2-editable-field"; import { Q2Input } from "../components/q2-input/q2-input"; import { Q2Loading } from "../components/q2-loading/q2-loading"; import { Q2Radio } from "../components/q2-radio/q2-radio"; import { Q2Select } from "../components/q2-select/q2-select"; import { FormFieldTypes } from "../util"; type RenamedPropTarget = { hostElement?: HTMLElement; }; export declare const debounce: ) => ReturnType>(fn: F, delay?: number) => (...args: Parameters) => void; export declare function isAndroid(): boolean; export declare function isIOS(): boolean; export declare function isMobile(): boolean; export declare function getComposedParent(element: HTMLElement): HTMLElement | null; export declare function findComposedAncestor(element: HTMLElement, predicate: (element: HTMLElement) => boolean, options?: { includeSelf?: boolean; stopAfter?: HTMLElement[]; }): HTMLElement | null; export declare function isInFixedPositionContext(element: HTMLElement): boolean; export declare function isInScrollableContainer(element: HTMLElement): boolean; export declare function isHostLosingFocus(event: FocusEvent, hostElement: HTMLElement): boolean; export declare function isRelatedTargetWithinHost(event: FocusEvent, element: HTMLElement): boolean; export declare function isEventFromElement(event: Event, element: HTMLElement): boolean; export declare function overrideFocus(hostElement: HTMLElement): void; export declare function isFirefox(): boolean; export declare function isTouchDevice(): boolean; export declare function isSafari(): boolean; /** * Returns the value of a prop if it is defined and included in the `validValues` * array. This is used primarily to prevent Vue wrappers from setting aria props * to "Symbol()" when the prop is not set. */ export declare function getAriaValueFromProp(prop: string, validValues?: string[]): string; export declare function createGuid(): number; export declare function nextPaint(fn: (value?: unknown) => void): void; export declare function isVisible(element: HTMLElement): boolean; export declare function waitForNextPaint(): Promise; export declare function capitalize(value: string): string; export declare function pick(props: string[]): (obj: object) => object; export declare function loc(key: string, subs?: Record | string[], options?: { ignoreTag?: boolean; }): string; /** * Returns browser name, version, platform, and context (browser vs app WebView). * Desktop Chrome: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 * Desktop Safari: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15 * Desktop Edge: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0 * Desktop Firefox: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0 * Mobile app Android: Mozilla/5.0 (Linux; Android 16; sdk_gphone64_arm64 Build/BE2A.250530.026.D1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/146.0.7680.177 Mobile Safari/537.36 * Mobile browser Android: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Mobile Safari/537.36 * Mobile app iOS: Mozilla/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 * Mobile browser iOS: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0.1 Mobile/15E148 Safari/604.1 -> 18.7 is the OS version, 26.0.1 is the Safari version */ export declare function getBrowserInfo(): { name: string; version: string; platform: string; context: string; }; export declare function renderLabel(target: FormFieldTypes | Q2RadioGroup | Q2CheckboxGroup | Q2Select | Q2Calendar): any; export declare function hasSlotContent(target: HTMLElement, slotName: string): boolean; export declare function handleAriaLabel(target: Q2Input | Q2Select | Q2Radio | Q2Checkbox | Q2EditableField | Q2Dropdown | Q2DropdownItem | Q2Loading | Q2Carousel | Q2Calendar | Q2Btn): void; /** * Handles when a prop has been renamed on a component without introducing a breaking change. */ export declare function handleRenamedProp(target: RenamedPropTarget, oldProp: string, newProp: string, removeOldProp?: boolean): void; export declare function handleDeprecationWarning(target: RenamedPropTarget, deprecatedItemName: string, deprecatedItemType: 'function' | 'prop' | 'method' | 'event'): void; export declare function renderMessages(target: FormFieldTypes): any; export declare function setMessageHeight(target: FormFieldTypes): void; export declare const resizeIframe: () => void; export declare const handleColor: (target: Q2Btn) => void; /** * Gets all translated text content from an element, including shadow DOM content * * @param {Element} element - The element to extract text from * @param {Object} options - Configuration options * @param {boolean} [options.trim=true] - Whether to trim whitespace * @param {boolean} [options.normalizeWhitespace=false] - Whether to normalize whitespace * @param {boolean} [options.skipComponentReady=false] - Skip waiting for components (for test environments) * @return {Promise} All translated text content in DOM order */ export declare const getAllText: (element: any, options?: {}) => Promise; export {};