export type FormErrors = Record<string, {
    readonly message?: string;
    readonly type?: string;
} | string | undefined>;
export type FormValues = Record<string, unknown>;
export interface GothamFormContextValue {
    readonly clearError: (name: string) => void;
    readonly defaultValues: FormValues;
    readonly errors: FormErrors;
    readonly isSubmitting: boolean;
    readonly setValue: (name: string, value: unknown) => void;
    readonly values: FormValues;
}
export declare const GothamFormContext: import("react").Context<GothamFormContextValue | null>;
export declare const useGothamFormContext: () => GothamFormContextValue | null;
export declare const getFormErrorMessage: (error: FormErrors[string]) => string | undefined;
