import { BaseResponsiveProps } from "../../responsive/type.js"; import { ILoadProductsParams } from "../../plus/salesSdk/types.js"; import { BigSaleMode, BigSaleProps } from "./types.js"; import { PisellReservationTableRow } from "../../plus/pisellReservation/types.js"; import React from "react"; //#region src/components/bigSale/dialog.d.ts /** dine_in 新建时传入的商品 + 桌位种子数据。 */ interface BigSaleDialogCreateSeed { reservationRuleProduct: Record; row: PisellReservationTableRow; /** 写入 bookings[].appointment_status,默认 `started`。 */ appointmentStatus?: string; } interface BigSaleDialogProps extends BaseResponsiveProps { open: boolean; /** raw modal 壳可见后再激活重内容;默认跟随 open,兼容非缓存调用方。 */ contentActive?: boolean; /** 壳打开帧 / 关闭帧完成后通知宿主推进下一阶段。 */ onVisualStateSettled?: (open: boolean, contentActive: boolean) => void; orderId?: number; /** 外层 SaleDetail 已持有的完整订单记录;命中时跳过按 id 二次查询。 */ preloadedSalesDetail?: Record; createSeed?: BigSaleDialogCreateSeed | null; onClose?: () => void; callback?: (result: any) => void; rulesHooks?: BigSaleProps['rulesHooks']; enableGlobalScanListener?: BigSaleProps['enableGlobalScanListener']; title?: string; /** 常驻 mount BigSale,关闭时不卸载(对齐 CachedEditBookingPlugin 预热)。 */ preloaded?: boolean; /** BigSale 实例卸载时是否同步销毁 PisellOS 模块。 */ destroyOnUnmount?: BigSaleProps['destroyOnUnmount']; osKey?: string; mode?: BigSaleMode; businessCode?: string; bookingConfigParams?: Record; productDisplayConfig?: BigSaleProps['productDisplayConfig']; productLoadParams?: ILoadProductsParams; /** 当前业务的商品目录配置是否已就绪;不阻塞弹窗壳和订单 hydrate。 */ productCatalogReady?: boolean; /** 桌位单类型,透传 OS otherParams.type。 */ orderType?: string; /** 每次 handleOpen 递增,保证同实例重复开桌仍会 seed。 */ openNonce?: number; } declare const _default: React.ForwardRefExoticComponent>; //#endregion export { BigSaleDialogCreateSeed, BigSaleDialogProps, _default };