import { RefObject } from "react";
import { FrameActionsHandler, LegacyFrameActions } from "./frame.actions";
import { HostActionsHandler, LegacyHostActions } from "./host.actions";
interface UseParentFrameProps {
    dispatch: HostActionsHandler;
    methods?: LegacyHostActions;
}
export declare const useParentFrame: (props: UseParentFrameProps) => [boolean, Partial<LegacyFrameActions> & {
    dispatch: FrameActionsHandler;
}];
interface UseLegacyChildrenFrameProps {
    dispatch?: undefined;
    methods: LegacyFrameActions;
    iframe: RefObject<HTMLIFrameElement>;
}
interface UseChildrenFrameProps {
    dispatch: FrameActionsHandler;
    methods?: undefined;
    iframe: RefObject<HTMLIFrameElement>;
}
export declare const useChildFrame: (props: UseLegacyChildrenFrameProps | UseChildrenFrameProps) => [boolean, {
    dispatch?: HostActionsHandler | undefined;
} & Partial<LegacyHostActions>];
export {};
