import type { Ref, RefObject } from 'react'; import type { ICoreRef } from '../typings/core'; import type { IRootContext } from '../typings/rootContext'; export interface IOpenApiParams { ref?: Ref; rootElementRef: RefObject; rootContextRef: RefObject; getValue: ICoreRef['getValue']; setValue: ICoreRef['setValue']; resetValue: ICoreRef['resetValue']; } /** * 开放 API */ export default function useOpenApi({ ref, rootElementRef, rootContextRef, getValue, setValue, resetValue, }: IOpenApiParams): void;