import { Option } from '../form/type';
type ModalOptions = {
    option: Option;
    submit?: (value: any, close: () => void) => void;
    close?: () => void;
    okText?: string;
    width?: number;
    cancelText?: string;
    title?: string;
    default?: any;
    cancelBtn?: boolean;
};
export declare function useModalForm(options: ModalOptions): {
    show: () => void;
    close: () => void;
    option: any;
};
export {};
