import { ReactNode } from "react"; import { DrawerProps } from "../drawer"; import { CTWRequestContext } from "../../../components/core/providers/ctw-context"; import { AnyZodSchema } from "../../../utils/form-helper"; export type FormErrors = Record; export type DrawerFormProps = { action: (data: T, getRequestContext: () => Promise) => Promise; schema: AnyZodSchema; errorHeader?: string; children: (submitting: boolean, errors?: FormErrors) => ReactNode; } & Omit; export declare const DrawerForm: ({ action, onClose, children, schema, errorHeader, ...drawerProps }: DrawerFormProps) => JSX.Element; //# sourceMappingURL=drawer-form.d.ts.map