/** * Copyright (c) Cisco Systems, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ export declare const indicesOf: (text: string, searchString: string) => number[][]; export declare const mergeRange: ([...ranges]: Iterable) => any[][]; export declare const findHighlight: (text: string, query: string) => { range: number[]; matching: boolean; text: string; }[]; export declare function debounce(func: Function, wait: number, immediate?: boolean): (this: T, ...args: any[]) => void; export declare const throttle: (fn: (...args: any[]) => unknown, delay?: number) => (...args: any[]) => void; export declare function closestElement(selector: string, base: HTMLElement): HTMLElement | null; export declare function getElementSafe(elements: T[], index: number): T | undefined; export declare function querySelectorDeep(selector: string, base?: HTMLElement | Document | ShadowRoot): Element | null; export declare function getElementByIdDeep(id: string, base?: HTMLElement | Document | ShadowRoot): Element | null; export declare function getDeepActiveElement(): HTMLElement | null;