import { FormConfig, StepFormConfig } from "./types.js"; import { UnifiedFormReturnType, adapters } from "./adapters.js"; import React from "react"; import { FieldValues } from "react-hook-form"; //#region src/components/form/context.d.ts interface FormContextType { adapter: keyof typeof adapters; autoSave?: { data: any; error: any; status: "error" | "idle" | "loading" | "success"; }; config: FormConfig | StepFormConfig; formInstance: UnifiedFormReturnType; } declare function FormProvider({ adapter, autoSave, children, config, formInstance }: FormContextType & { children: React.ReactNode; }): React.JSX.Element; declare function useFormContext(): FormContextType; //#endregion export { FormProvider, useFormContext }; //# sourceMappingURL=context.d.ts.map