import { n as ButtonOptions } from "../button-Bh6AYzok.js";
import { t as FormStore } from "../form-store-C15msSpw.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/form/form-submit.d.ts
declare const TagName = "button";
type TagName = typeof TagName;
/**
 * Returns props to create a `FormSubmit` component.
 * @see https://ariakit.com/components/form
 * @example
 * ```jsx
 * const store = useFormStore();
 * const props = useFormSubmit({ store });
 * <Form store={store}>
 *   <Role {...props}>Submit</Role>
 * </Form>
 * ```
 */
declare const useFormSubmit: import("@ariakit/react-utils").Hook<"button", FormSubmitOptions<"button">>;
/**
 * Renders a native submit button inside a form. The button will be
 * [`disabled`](https://ariakit.com/reference/form-submit#disabled) while the
 * form is submitting, but it will remain accessible to keyboard and screen
 * reader users thanks to the
 * [`accessibleWhenDisabled`](https://ariakit.com/reference/form-submit#accessiblewhendisabled)
 * prop that's enabled by default.
 * @see https://ariakit.com/components/form
 * @example
 * ```jsx {4}
 * const form = useFormStore();
 *
 * <Form store={form}>
 *   <FormSubmit>Submit</FormSubmit>
 * </Form>
 * ```
 */
declare const FormSubmit: (props: FormSubmitProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface FormSubmitOptions<T extends ElementType = TagName> extends ButtonOptions<T> {
  /**
   * 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;
  /**
   * @default true
   */
  accessibleWhenDisabled?: ButtonOptions<T>["accessibleWhenDisabled"];
}
type FormSubmitProps<T extends ElementType = TagName> = Props<T, FormSubmitOptions<T>>;
//#endregion
export { FormSubmit, FormSubmitOptions, FormSubmitProps, useFormSubmit };
//# sourceMappingURL=form-submit.d.ts.map