import type { EditBookingModalResourceSnapshot } from '../../../../components/booking/editBookingModal/type';
import type { PisellReservationTableRow, SelectFloorMapResourcePayload } from '../../types';
import type { BookingDetailAppointmentStatusTone, SalesHostModule } from './types';
/**
 * 宿主 action / NativePage 用的订单主键：优先 order.id，否则顶层 order_id。
 */
export declare function resolveOrderIdForHostActions(bookingRaw: Record<string, unknown>): string | number | undefined;
export declare function resolveBookingIdForHostActions(bookingRaw: Record<string, unknown>): string | number | undefined;
export declare function resolveBookingDateTime(bookingRaw: Record<string, unknown>, atKey: 'start_at' | 'end_at', dateKey: 'start_date' | 'end_date', timeKey: 'start_time' | 'end_time'): string | undefined;
export declare function resolveResourceIdFromRow(row: PisellReservationTableRow | null | undefined): string | undefined;
export declare function buildEditBookingResourceSnapshot(selected: SelectFloorMapResourcePayload): EditBookingModalResourceSnapshot | undefined;
export declare function isSameResourceType(source: PisellReservationTableRow | null | undefined, target: EditBookingModalResourceSnapshot | undefined): boolean;
export declare function getSalesHostModule(pisellos: unknown): SalesHostModule | undefined;
export declare function updateLocalOrder(action: unknown, orderId: string | number | undefined): void;
/** 预约是否已结束（`status` / `appointment_status` 为 completed）。 */
export declare function isCompletedBookingRaw(bookingRaw: Record<string, unknown>): boolean;
export declare function parseBookingProducts(bookingRaw: Record<string, unknown>): Record<string, unknown>[];
export declare function orderCurrencySymbol(order: Record<string, unknown> | undefined): string;
export declare function resolveAppointmentStatusTag(bookingRaw: Record<string, unknown> | null): {
    label: string;
    tone: BookingDetailAppointmentStatusTone;
} | null;
