import type { CFActiveOrder } from "../../CommonTypes"; export type PrintType = "image" | "html" | "receipt"; export type PrintParams = { type: "image"; data: { image: string; }; options?: PrintOptions; } | { type: "html"; data: { html: string; }; options?: PrintOptions; } | { type: "receipt"; data: { order?: Omit; globalBlockId?: string; }; options?: PrintOptions; }; export interface PrintOptions { margins?: { top?: number; right?: number; bottom?: number; left?: number; }; paperSize?: string; width?: string; } export interface PrintResponse { success: boolean; timestamp: string; type: PrintType; } export type Print = (params?: PrintParams) => Promise;