import type { noop } from 'ahooks/lib/usePersistFn'; import type { CommunicationProps } from './types'; import { ActionType } from './types'; interface BasicCommunicationOptions extends CommunicationProps { myName?: string; targetName?: string; doMySelf?: noop; actionName: ActionType; } export declare const useBasicCommunication: ({ component$, myName, targetName, doMySelf, actionName, }: BasicCommunicationOptions) => (data?: any) => void; interface CommunicationOptions extends CommunicationProps { myName?: string; refreshMyself?: noop; updateMySelfData?: noop; refreshTargetName?: string; updateTargetName?: string; } export declare const useCommunication: ({ myName, component$, refreshMyself, updateMySelfData, updateTargetName, refreshTargetName, }: CommunicationOptions) => { updateTargetData: (data?: any) => void; refreshTarget: (data?: any) => void; }; export {};