import { type ActionButtonElement, type ActionButtonProps } from "../../utils/createActionButton.js";
/**
* Hook that provides edit functionality for action bar buttons.
*
* This hook returns a callback function that starts editing the current message,
* or null if editing is not available (e.g., already in editing mode).
*
* @returns An edit callback function, or null if editing is disabled
*
* @example
* ```tsx
* function CustomEditButton() {
* const edit = useActionBarEdit();
*
* return (
*
* );
* }
* ```
*/
declare const useActionBarEdit: () => (() => void) | null;
export declare namespace ActionBarPrimitiveEdit {
type Element = ActionButtonElement;
/**
* Props for the ActionBarPrimitive.Edit component.
* Inherits all button element props and action button functionality.
*/
type Props = ActionButtonProps;
}
/**
* A button component that starts editing the current message.
*
* This component automatically handles starting the edit mode for the current message
* and is disabled when editing is not available (e.g., already in editing mode).
*
* @example
* ```tsx
*
* Edit Message
*
* ```
*/
export declare const ActionBarPrimitiveEdit: import("react").ForwardRefExoticComponent & import("react").ButtonHTMLAttributes & {
asChild?: boolean;
}, "ref"> & {
render?: import("react").ReactElement | undefined;
} & import("react").RefAttributes, "ref"> & import("react").RefAttributes>;
export {};
//# sourceMappingURL=ActionBarEdit.d.ts.map