import { type InferOutput, type ObjectSchema, type StringSchema, } from "valibot"; export function useEnhance< T, U extends ObjectSchema | StringSchema, >( schema: { outputs: Record }, onSuccess?: (output: InferOutput) => void, ): { busy: boolean; onSubmit: (event: { preventDefault: () => void; target: EventTarget | null; }) => void; };