import { type ComponentRef, type ComponentPropsWithoutRef, type MouseEventHandler } from "react"; import { Primitive } from "./Primitive.js"; type ActionButtonCallback = (props: TProps) => MouseEventHandler | null; type PrimitiveButtonProps = ComponentPropsWithoutRef; export type ActionButtonProps = PrimitiveButtonProps & (THook extends (props: infer TProps) => unknown ? TProps : never); export type ActionButtonElement = ComponentRef; export declare const createActionButton: (displayName: string, useActionButton: ActionButtonCallback, forwardProps?: (keyof NonNullable)[]) => import("react").ForwardRefExoticComponent & import("react").ButtonHTMLAttributes & { asChild?: boolean; }, "ref"> & { render?: import("react").ReactElement | undefined; } & import("react").RefAttributes, "ref"> & TProps> & import("react").RefAttributes>; export {}; //# sourceMappingURL=createActionButton.d.ts.map