import * as React from "react"; import { PropsWithAs } from "reakit-utils/types"; import { ButtonOptions, ButtonHTMLProps } from "../Button/Button"; import { unstable_FormStateReturn } from "./FormState"; import { DeepPath } from "./__utils/types"; export declare type unstable_FormRemoveButtonOptions> = ButtonOptions & Pick, "baseId" | "values" | "remove"> & { /** * FormInput's name as in form values. This should point to array value. */ name: P; /** * The index in `form.values[name]` that will be removed. */ index: number; }; export declare type unstable_FormRemoveButtonHTMLProps = ButtonHTMLProps; export declare type unstable_FormRemoveButtonProps> = unstable_FormRemoveButtonOptions & unstable_FormRemoveButtonHTMLProps; export declare const unstable_useFormRemoveButton: >(options: unstable_FormRemoveButtonOptions, htmlProps?: ButtonHTMLProps | undefined) => unstable_FormRemoveButtonHTMLProps; export declare const unstable_FormRemoveButton: , T extends React.ElementType = "button">(props: PropsWithAs, T>) => JSX.Element;