import React from 'react'; export interface PackageData { uuid: string; name: string; length: number; width: number; height: number; weight: { value: number; unit: string; }; isDefault: boolean; updateApi: string; deleteApi: string; } export interface PackageFormProps { /** POST to create, PATCH to update. */ formMethod: 'POST' | 'PATCH'; saveApi: string; /** Receives the raw created/updated `package` row from the API response. */ onSuccess: (row?: Record) => void; reload?: () => void; pkg?: PackageData; dimensionUnit?: string; weightUnit?: string; } /** * Create/edit form for a package (parcel size). Height may be 0 — a flat * envelope. `weight` is the TARE (the empty package's own weight) and is * optional; it is added to the shipping weight for quotes and labels. * Submits via axios so business errors from the API (duplicate name, * default-swap rules) surface as toasts. */ export declare function PackageForm({ formMethod, saveApi, onSuccess, reload, pkg, dimensionUnit, weightUnit }: PackageFormProps): React.JSX.Element;