import type { ElementType } from "react"; import type { CommandOptions } from "../command/command.tsx"; import type { Props } from "../utils/types.ts"; declare const TagName = "button"; type TagName = typeof TagName; /** * Returns props to create a `Button` component. If the element is not a native * button, the hook will return additional props to make sure it's accessible. * @see https://ariakit.com/components/button * @example * ```jsx * const props = useButton({ render:
}); * Accessible button * ``` */ export declare const useButton: import("../utils/types.ts").Hook<"button", ButtonOptions<"button">>; /** * Renders an accessible button element. If the underlying element is not a * native button, this component will pass additional attributes to make sure * it's accessible. * @see https://ariakit.com/components/button * @example * ```jsx * * ``` */ export declare const Button: (props: ButtonProps) => import("react").ReactElement>; export interface ButtonOptions extends CommandOptions { } export type ButtonProps = Props>; export {};