import type { ElementType } from "react"; import type { ButtonOptions } from "../button/button.tsx"; import type { Props } from "../utils/types.ts"; import type { FormStore } from "./form-store.ts"; declare const TagName = "button"; type TagName = typeof TagName; /** * Returns props to create a `FormReset` component. * @see https://ariakit.com/components/form * @example * ```jsx * const store = useFormStore(); * const props = useFormReset({ store }); *
* Reset *
* ``` */ export declare const useFormReset: import("../utils/types.ts").Hook<"button", FormResetOptions<"button">>; /** * Renders a button that resets the form to its initial values, as defined by * the * [`defaultValues`](https://ariakit.com/reference/use-form-store#defaultvalues) * prop given to the form store. * @see https://ariakit.com/components/form * @example * ```jsx {4} * const form = useFormStore(); * *
* Reset *
* ``` */ export declare const FormReset: (props: FormResetProps) => import("react").ReactElement>; export interface FormResetOptions extends ButtonOptions { /** * Object returned by the * [`useFormStore`](https://ariakit.com/reference/use-form-store) hook. If not * provided, the closest [`Form`](https://ariakit.com/reference/form) or * [`FormProvider`](https://ariakit.com/reference/form-provider) components' * context will be used. */ store?: FormStore; } export type FormResetProps = Props>; export {};