import type { FdoPaymentType } from '@feedmepos/core/entity'; /** * Reconcile settings for an offline payment type, as POS stores them: the mode on * `terminal.reconcileConfig.type` and the mode's options on `reconcileConfig.cardType`. * * Mirrors pos/lib/pages/setting/groups/payment/payment_type/custom_payment_type_dialog.dart — * keep the two in step. */ export declare const RECONCILE_MODE: { readonly none: "none"; readonly card: "card"; readonly wallet: "wallet"; }; export type ReconcileMode = (typeof RECONCILE_MODE)[keyof typeof RECONCILE_MODE]; /** * Payment types saved before the mode existed carry no `type` at all, and POS reads * anything that is not `wallet` as a card reconcile, so those records keep working. */ export declare function getReconcileMode(paymentType?: FdoPaymentType): ReconcileMode; export declare function getReconcileOptions(paymentType?: FdoPaymentType): string[]; /** * A mode with no options is a no-op in POS — it skips the reconcile prompt entirely — * so a mode always carries at least one option. */ export declare function withAtLeastOneOption(options: string[]): string[]; export declare function buildReconcileTerminal(mode: ReconcileMode, options: string[]): FdoPaymentType['terminal'];