UNPKG

989 BTypeScriptView Raw
1export declare type VisibilityCache = Map<Element | undefined, boolean>;
2export declare const isVisibleCached: (visibilityCache: VisibilityCache, node: Element | undefined) => boolean;
3export declare const isAutoFocusAllowedCached: (cache: VisibilityCache, node: Element | undefined) => boolean;
4export declare const getDataset: (node: Element) => HTMLElement['dataset'] | undefined;
5export declare const isHTMLButtonElement: (node: Element) => node is HTMLInputElement;
6export declare const isHTMLInputElement: (node: Element) => node is HTMLInputElement;
7export declare const isRadioElement: (node: Element) => node is HTMLInputElement;
8export declare const notHiddenInput: (node: Element) => boolean;
9export declare const isAutoFocusAllowed: (node: Element) => boolean;
10export declare const isGuard: (node: Element | undefined) => boolean;
11export declare const isNotAGuard: (node: Element | undefined) => boolean;
12export declare const isDefined: <T>(x: T | null | undefined) => x is T;