import type { MutableRefObject } from 'react'; import type { TaroElement } from '@tarojs/runtime'; type TargetValue = T | undefined | null; type TargetType = HTMLElement | Element | TaroElement | Window | Document; export type BasicTarget = (() => TargetValue) | TargetValue | MutableRefObject>; export declare function getTargetElement(target: BasicTarget, defaultElement?: T): T; export {};