import React from 'react';
export interface ModalComponentProps {
    /**
     * Callback to close the modal.
     */
    closeModal: () => void;
}
export interface UseModalResult {
    /**
     * The component for the modal. (Make sure to add this to the DOM)
     */
    ModalWrapper: React.FC;
    /**
     * Method to close the modal.
     */
    closeModal: () => void;
    /**
     * Method to open the modal.
     */
    openModal: () => void;
    /**
     * Indicates whether the modal is shown or not.
     */
    isShown: boolean;
}
/**
 * Wraps the given component in a `Modal` and returns methods to control the visibility of the modal.
 * @param Component The component that should be shown as modal.
 */
export declare const useModal: (Component: React.ComponentType<ModalComponentProps>) => UseModalResult;
//# sourceMappingURL=useModal.d.ts.map