import type { ProductsListFilters } from "../query-keys.js"; export interface UseCharterProductsOptions extends ProductsListFilters { enabled?: boolean; } /** * Admin product list — fans out to local DB + every registered charter * adapter. Items are tagged with `source: 'local' | 'external'` for the * UI to render an external badge. */ export declare function useCharterProducts(options?: UseCharterProductsOptions): import("@tanstack/react-query").UseQueryResult | null; createdAt: string; updatedAt: string; }; } | { source: "external"; sourceProvider: string; sourceRef: Record; key: string; product: unknown; })[]; total: number; localTotal: number; adapterCount: number; limit: number; offset: number; adapterErrors?: { adapter: string; error: string; }[] | undefined; }>, Error>; export interface UseCharterProductOptions { enabled?: boolean; include?: ReadonlyArray<"voyages" | "yacht">; } /** * Admin product detail. Accepts both local TypeIDs (`chrt_*`) and * external `:` keys; the server dispatches to the local * DB or the registered adapter accordingly. */ export declare function useCharterProduct(key: string | null | undefined, options?: UseCharterProductOptions): import("@tanstack/react-query").UseQueryResult | null; createdAt: string; updatedAt: string; voyages?: { id: string; productId: string; yachtId: string; voyageCode: string; name: string | null; embarkPortFacilityId: string | null; embarkPortName: string | null; disembarkPortFacilityId: string | null; disembarkPortName: string | null; departureDate: string; returnDate: string; nights: number; bookingModes: ("per_suite" | "whole_yacht")[]; appointmentOnly: boolean; wholeYachtPricesByCurrency: Record; apaPercentOverride: string | null; mybaTemplateIdOverride: string | null; charterAreaOverride: string | null; salesStatus: "open" | "on_request" | "wait_list" | "sold_out" | "closed"; availabilityNote: string | null; externalRefs: Record | null; lastSyncedAt: string | null; createdAt: string; updatedAt: string; }[] | undefined; yacht?: { id: string; lineSupplierId: string | null; name: string; slug: string; yachtClass: "luxury_motor" | "luxury_sailing" | "expedition" | "small_cruise"; capacityGuests: number | null; capacityCrew: number | null; lengthMeters: string | null; yearBuilt: number | null; yearRefurbished: number | null; imo: string | null; description: string | null; gallery: string[] | null; amenities: Record | null; crewBios: { role: string; name: string; bio?: string | undefined; photoUrl?: string | undefined; }[] | null; defaultCharterAreas: string[] | null; externalRefs: Record | null; isActive: boolean; createdAt: string; updatedAt: string; } | null | undefined; } | { source: "external"; sourceProvider: string; sourceRef: Record; product: Record; voyages?: unknown[] | undefined; yacht?: unknown; }>, Error>;