import { MutableRefObject } from 'react'; import { PopupProps } from '../popup'; export type AgentProps void; popupProps?: PopupProps; }> = { id?: string; $$afterRender?: () => void; popupProps?: PopupProps; } & ComponentProps; export interface AgentRef { show(props: ComponentProps): void; hide(): void; } export interface MapIdAgent { [id: string]: MutableRefObject<(AgentRef & ComponentRef) | undefined>; } export declare function useAgent(component: any, agentProps: AgentProps, mapIdAgent: MapIdAgent, defaultId: string): import("react").CElement>;