import { DependencyList } from 'react'; export interface RawOverlayProps { /** 创建原生 Overlay 实例的工厂;仅在挂载 / deps 变化时调用 */ create: () => T; /** 重建依赖,变化时销毁旧实例并用 create 重建(默认 []:只挂载一次) */ deps?: DependencyList; /** 实例创建并挂载后回调,用于拿到实例做命令式操作 */ onReady?: (instance: T) => void; } declare function RawOverlayImpl({ create, deps, onReady }: RawOverlayProps): null; export declare const RawOverlay: typeof RawOverlayImpl; export {};