import React from 'react'; interface UseFormResult { ref: React.RefObject; addEventListener: (event: "success", callback: (e: CustomEvent) => void) => { destroy: () => void; }; submit: () => any; clearError: () => void; reset: () => void; error: any; } interface UseFormProps { id: string; } declare function useForm({ id }: UseFormProps): UseFormResult; export { useForm };