import type { SaleDetailActionButtonGroupList, SaleDetailActionButtonItem, SaleDetailActionConfig, SaleDetailActionInput, SaleDetailActionKey, SaleDetailContext } from './types';
export declare const DEFAULT_ACTION_CONFIG: Record<SaleDetailActionKey, SaleDetailActionConfig>;
interface SalesHostModule {
    cancelOrder?: unknown;
}
export declare function toButtonGroupList(items: SaleDetailActionButtonItem[]): SaleDetailActionButtonGroupList;
export declare function getActionKey(action: SaleDetailActionInput): SaleDetailActionKey;
export declare function getActionConfig(action: SaleDetailActionInput): SaleDetailActionConfig;
export declare function mergeActionItem(item: SaleDetailActionButtonItem, config: SaleDetailActionConfig): SaleDetailActionButtonItem;
export declare function toDropdownMenuItem(item: SaleDetailActionButtonItem): {
    key: string;
    label: import("react").ReactNode;
    icon: import("react").ReactNode;
    danger: boolean | undefined;
    disabled: boolean;
    onClick: import("react").MouseEventHandler<HTMLElement> | undefined;
    children: import("antd/es/menu/hooks/useItems").ItemType<import("antd/es/menu/hooks/useItems").MenuItemType>[] | undefined;
};
export declare function getSortedVisibleActionItems(items: SaleDetailActionButtonItem[]): SaleDetailActionButtonItem[];
export declare function resolveSaleDetailOrderId(context: SaleDetailContext): number | string | undefined;
export declare function getSalesHostModule(pisellos: unknown): SalesHostModule | undefined;
export declare function updateLocalOrder(action: unknown, orderId: number | string | undefined): void;
export {};
