type Booleanish = boolean | "true" | "false"; declare const dataAttr: (guard: boolean | undefined) => Booleanish; declare const ariaAttr: (guard: boolean | undefined) => "true" | undefined; type Target$1 = HTMLElement | EventTarget | null | undefined; declare function contains(parent: Target$1, child: Target$1): boolean; declare const isSelfEvent: (event: Pick) => boolean; type Ctx = { getRootNode?: () => Document | ShadowRoot | Node; }; declare function createScope(methods: T): { getRootNode: (ctx: Ctx) => Document | ShadowRoot; getDoc: (ctx: Ctx) => Document; getWin: (ctx: Ctx) => Window & typeof globalThis; getActiveElement: (ctx: Ctx) => HTMLElement | null; getById: (ctx: Ctx, id: string) => T_1 | null; } & T; declare function getDocument(el: Element | Node | Document | null): Document; declare function getWindow(el: HTMLElement): Window & typeof globalThis; declare function getActiveElement(el: HTMLElement): HTMLElement | null; declare function itemById(v: T[], id: string): T | undefined; declare function indexOfId(v: T[], id: string): number; declare function nextById(v: T[], id: string, loop?: boolean): T; declare function prevById(v: T[], id: string, loop?: boolean): T | null; declare function getByText(v: T[], text: string, currentId?: string | null): T | undefined; type TypeaheadState = { keysSoFar: string; timer: number; }; type TypeaheadOptions = { state: TypeaheadState; activeId: string | null; key: string; timeout?: number; }; declare function getByTypeaheadImpl(_items: T[], options: TypeaheadOptions): T | undefined; declare const getByTypeahead: typeof getByTypeaheadImpl & { defaultOptions: { keysSoFar: string; timer: number; }; isValidEvent: typeof isValidTypeaheadEvent; }; declare function isValidTypeaheadEvent(event: Pick): boolean; declare function getComputedStyle(el: HTMLElement): any; declare function getEventTarget(event: Event): T | null; declare function getParent(el: HTMLElement): HTMLElement; declare function getScrollParent(el: HTMLElement): HTMLElement; type Target = Array; declare function getScrollParents(el: HTMLElement, list?: Target): Target; declare function isEditableElement(el: HTMLElement | EventTarget | null): boolean; declare function isHTMLElement(value: any): value is HTMLElement; declare const isDom: () => boolean; declare function getPlatform(): any; declare const isTouchDevice: () => boolean; declare const isMac: () => boolean; declare const isIPhone: () => boolean; declare const isSafari: () => boolean; declare const isFirefox: () => boolean; declare const isApple: () => boolean; declare const isIos: () => boolean; type Root = Document | Element | null | undefined; declare function queryAll(root: Root, selector: string): T[]; declare function query(root: Root, selector: string): T | null | undefined; declare function nextTick(fn: VoidFunction): () => void; declare function raf(fn: VoidFunction): () => void; declare const MAX_Z_INDEX = 2147483647; export { MAX_Z_INDEX, TypeaheadOptions, TypeaheadState, ariaAttr, contains, createScope, dataAttr, getActiveElement, getByText, getByTypeahead, getComputedStyle, getDocument, getEventTarget, getParent, getPlatform, getScrollParent, getScrollParents, getWindow, indexOfId, isApple, isDom, isEditableElement, isFirefox, isHTMLElement, isIPhone, isIos, isMac, isSafari, isSelfEvent, isTouchDevice, itemById, nextById, nextTick, prevById, query, queryAll, raf };