1 | declare type SetRef = () => Element | null;
|
2 | declare type Ref = null | (() => Element | null);
|
3 | declare type ElementLocation = {
|
4 | current: SetRef;
|
5 | parent: Ref;
|
6 | left: Ref;
|
7 | right: Ref;
|
8 | };
|
9 | declare type Location = {
|
10 | stack: ReadonlyArray<ElementLocation>;
|
11 | ownerDocument: Document;
|
12 | element: SetRef;
|
13 | };
|
14 | export declare const recordElementLocation: (element: Element | null) => Location | null;
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare const captureFocusRestore: (targetElement: Element | null) => (() => Element | undefined);
|
23 | export {};
|