import type { AsyncComboboxOption } from "../components/async-combobox.js"; export interface SupplierPicker { searchSuppliers: (query: string) => Promise; createSupplier: (name: string) => Promise; } /** * Supplier picker wiring for the supplier-invoice forms. Selecting an * existing supplier or creating one inline stores the supplier's id as the * invoice's `supplierId` — a loose text reference, no cross-module FK. * * Search composes the suppliers package's own query options through the * shared provider context (`baseUrl` + credentialed fetcher), so results * land in the suppliers query cache. Inline creation goes through * `useSupplierMutation().create` — the suppliers package's client hook for * `POST /v1/suppliers` — with type `"other"` (editable later in the * suppliers module); the hook seeds/invalidates the suppliers caches itself. */ export declare function useSupplierPicker(): SupplierPicker;