import { type Ref } from 'vue'; import type { PurchaseOrderFormController, PurchaseOrderFormState } from '@feedmepos/inventory-core-dart'; import type { FdoDinero } from '@feedmepos/mf-common'; /** * The form total (the "Total cost" footer of the transfer form) as display text, without currency. * * `controller.getTotalCosts()` reads the Dart controller state, which Vue cannot track. A bare call * in a template only refreshes when the component that owns that template renders again. The * footer sits in the slot of `FeatureCapabilityGate`, a child component that has no other * dependency, so the bare call rendered once and kept its first value (0.00). * * `use-purchase-order-form-controller` calls `triggerRef(state)` after every change of an item, * quantity, cost or supplier. This composable recomputes the text on each of those, so the footer * always renders a ref that changes. */ export declare function useTransferTotalCost(options: { controller: Ref; state: Ref; /** Currency code that the total is formatted with. */ getCurrency: () => FdoDinero['currency']; }): { totalCostText: Ref; hasTotalCost: Ref; };