export type MakeRef = { (ref: T | undefined | null): void; current: T | null; waitForCurrent(): Promise; }; export declare function makeRef(currentChangedCallback?: (element: T) => void): MakeRef;