export interface FontMetrics { font: string; lineHeight: number; ascent: number; fullAscent: number; descent: number; leading: number; extraAscent?: number; extraDescent?: number; extraLineHeight?: number; } export declare function beep(frequency?: number, gainValue?: number, duration?: number): void; export declare function beepPromise(frequency?: number, gainValue?: number, duration?: number): Promise; export declare function eventToKey(event: KeyboardEvent): string; export declare function getCssValue(element: Element, property: string): string; export declare function getCssValues(element: Element, properties: string[]): string[]; export declare function getCssVariable(name: string): string; export declare function setCssVariable(name: string, value: string): void; export declare function getCssRuleValue(element: Element, property: string): string | undefined; export declare function getCssRuleValues(element: Element, properties: string[]): (string | undefined)[]; export declare function getFont(element: Element): string; export declare function getFontMetrics(elementOrFont: Element | string, specificChar?: string): FontMetrics; export declare function doesCharacterGlyphExist(elementOrFont: Element | string, charOrCodePoint: string | number): boolean; export declare function getTextWidth(items: string | string[], font: string | HTMLElement, fallbackFont?: string): number; export declare function htmlEscape(s: string, escapeQuotes?: boolean): string; export declare function htmlUnescape(s: string): string; export declare function initPlatformDetection(nav?: Navigator, win?: Window, smallScreen?: boolean): void; export declare function isAndroid(): boolean; export declare function isChrome(): boolean; export declare function isChromeOS(): boolean; export declare function isChromium(): boolean; export declare function isChromiumEdge(): boolean; export declare function isEdge(): boolean; export declare function isFirefox(): boolean; /** * @deprecated will always be false as this code no longer supports IE. */ export declare function isIE(): boolean; export declare function isIOS(): boolean; export declare function isLinux(): boolean; export declare function iosVersion(): number; export declare function isIOS14OrEarlier(): boolean; export declare function isLikelyMobile(): boolean; export declare function isMacOS(): boolean; export declare function isOpera(): boolean; /** * @deprecated no longer reliably detectable. */ export declare function isRaspbian(): boolean; export declare function isSafari(): boolean; export declare function isSamsung(): boolean; export declare function isWindows(): boolean; export declare function restrictPixelWidth(text: string, font: string | HTMLElement, maxWidth: number, clipString?: string): string; export declare function setFullScreen(full: boolean): void; export declare function setFullScreenAsync(full: boolean, throwImmediate?: boolean): Promise; export declare function toggleFullScreen(): void; export declare function toggleFullScreenAsync(throwImmediate?: boolean): Promise; export declare function isFullScreen(): boolean; export declare function isEffectivelyFullScreen(): boolean; export declare function encodeForUri(s: string, spaceAsPlus?: boolean): string; export declare function urlEncodeParams(params: Record, spaceAsPlus?: boolean): string; //# sourceMappingURL=browser-util.d.ts.map