export declare type Result = Success | Error; export interface Success { ok: true; result: "success"; payload: T; } export interface Error { ok: false; result: "error"; error: ProblemDetails; } export interface ValidationResult { isValid: boolean; errors: SerializableError; } export interface SerializableError { [key: string]: string[]; } export interface ModelStateDictionary { root: any; maxAllowedErrors: number; hasReachedMaxErrors: boolean; errorCount: number; count: number; keys: string | null[]; values: any[]; isValid: boolean; validationState: number; item: any; } export interface ProblemDetails { detail: string; status: number; title: string; type: string; extensions: any; } export declare type UseSubmit = [ (values: RequestPayload) => Promise>, (values: RequestPayload) => Promise, { error: string | null; submitting: boolean; } ]; export declare function useAction(url: string): UseSubmit; export declare function useSubmit(url: string): UseSubmit; //# sourceMappingURL=use-submit.d.ts.map