1 | import * as React from "react";
|
2 | export declare function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T>;
|
3 | export declare function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T>;
|
4 |
|
5 |
|
6 |
|
7 | export declare function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function mergeRefs<T>(...refs: Array<React.Ref<T>>): React.RefCallback<T>;
|
13 | export declare function getRef<T>(ref: T | React.RefObject<T> | null): T | null;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare function refHandler<T extends HTMLElement, K extends string>(refTargetParent: {
|
21 | [k in K]: T | null;
|
22 | }, refTargetKey: K, refProp?: React.Ref<T> | undefined): React.RefCallback<T>;
|