export interface PopupMessage {
    searchParams: {
        [key: string]: string | undefined;
        code: string;
        installation_id: string;
        state: string;
    };
    type: string;
}
export declare const usePopupWindow: (props: {
    eventType?: string;
    href: string;
    onMessage?: (searchParams: PopupMessage['searchParams']) => Promise<void>;
}) => {
    isPopupOpen: boolean;
    openPopupWindow: (e: React.MouseEvent<HTMLAnchorElement>) => void;
    popupHasLoaded: boolean;
    popupRef?: React.MutableRefObject<Window | null>;
};
//# sourceMappingURL=usePopupWindow.d.ts.map