import { InvoiceLayoutConfig, SmallTicketLocaleData } from "./receipt.js"; import React from "react"; //#region src/plus/invoice/OrderInvoice.d.ts interface OrderInvoiceResult { identity: string; orderId: string | number; generatedAt: string; locale?: string; secondaryLocale?: string; selectedLanguage?: string; languageOptions?: Array<{ code: string; locales: string[]; }>; source: Record; shop: Record; layout: InvoiceLayoutConfig; smallTicketData: Record; } interface OrderInvoiceHandle { identity: string; downloadPdf: () => Promise; } interface OrderInvoiceProps { osKey?: string; locale?: string; /** Optional design/embedded input. Runtime callers normally use osKey. */ result?: OrderInvoiceResult; onReady?: (handle: OrderInvoiceHandle) => void; onError?: (error: Error) => void; onDispose?: (identity?: string) => void; className?: string; style?: React.CSSProperties; } /** Low-code entry: reads a page-owned readonly solution, never initializes POS. */ declare function OrderInvoice(props: OrderInvoiceProps): React.JSX.Element; //#endregion export { OrderInvoice, OrderInvoiceHandle, OrderInvoiceProps, OrderInvoiceResult };