import type { PackageRow } from './types.js'; export interface PackagePayload { name?: string; length?: number; width?: number; height?: number; /** Tare — the EMPTY package's own weight, in the store's weight unit. */ weight?: number; is_default?: boolean; } /** * Validate a package payload. `partial = true` (update) allows omitted * fields; present fields are always validated. Mirrors the DB CHECK * constraints so admins get readable errors instead of constraint codes: * length/width > 0, height >= 0 (a flat envelope is height 0), tare >= 0. */ export declare function validatePackagePayload(payload: PackagePayload, partial?: boolean): void; export declare const createPackage: (payload: PackagePayload) => Promise; export declare const updatePackage: (uuid: string, payload: PackagePayload) => Promise; export declare const deletePackage: (uuid: string) => Promise;