/// <reference types="react" />
export declare const useModal: <T extends HTMLElement>(ref: import("react").RefObject<T>, defaultState?: boolean) => readonly [boolean, {
    readonly openModal: () => void;
    readonly closeModal: () => void;
    readonly toggleModal: () => void;
}];
