import type { FormInst } from 'naive-ui'; import { type ComputedRef, type Ref } from 'vue'; export interface UseFormProps { url?: string | ComputedRef; id?: unknown | Ref; initData?: Record; formRef?: Ref; invalidate?: string | string[]; success?: (data: Record) => void; model?: Ref> | Record; edit?: boolean; refetch?: boolean; } export declare function useForm({ formRef, url, id, initData, invalidate, model, edit, success, refetch }: UseFormProps): { model: Ref, Record>; loading: Ref; onSubmit: () => void; onReset: () => void; onClear: () => void; getData: () => void; };