import * as valibot from 'valibot'; import { Output } from 'valibot'; declare const productSchema: valibot.SchemaWithTransform; productName: valibot.StringSchema; productBottledVolume: valibot.NumberSchema; productAlchoholVolume: valibot.NumberSchema; productPrice: valibot.NumberSchema; productFoodCategories: valibot.StringSchema; productCategory: valibot.ObjectSchema<{ name: valibot.StringSchema; id: valibot.ArraySchema, string[]>; taste: valibot.BooleanSchema; sweet: valibot.BooleanSchema; subCategories: valibot.NullableSchema, undefined, any>; }, undefined, { name: string; id: string[]; taste: boolean; sweet: boolean; subCategories: any; }>; productSubCategory: valibot.NullableSchema, undefined, any>; productCountryOfOrigin: valibot.StringSchema; productSpecialReserve: valibot.BooleanSchema; productOrganic: valibot.BooleanSchema; productContainerType: valibot.StringSchema; productPlaceOfOrigin: valibot.StringSchema; productDistrictOfOrigin: valibot.StringSchema; productWine: valibot.StringSchema; productInventory: valibot.NumberSchema; productYear: valibot.StringSchema; productDateOnMarket: valibot.StringSchema; productIsTemporaryOnSale: valibot.BooleanSchema; productIsGift: valibot.BooleanSchema; productIsInThema: valibot.BooleanSchema; productIsAvailableInStores: valibot.BooleanSchema; productIsSpecialOrder: valibot.BooleanSchema; productStoreSelected: valibot.NullableSchema; code: valibot.StringSchema; name: valibot.StringSchema; quantity: valibot.NumberSchema; created: valibot.StringSchema; modified: valibot.StringSchema; }, undefined, { name: string; id: number; code: string; quantity: number; created: string; modified: string; }>, undefined, { name: string; id: number; code: string; quantity: number; created: string; modified: string; } | null>; productTasteGroup: valibot.StringSchema; productTasteGroup2: valibot.StringSchema; productTasteGroup2Description: valibot.NullableSchema, undefined, any>; productPackagingClosing: valibot.StringSchema; productPackagingContainer: valibot.StringSchema; productSpecialMarking: valibot.ArraySchema, any[]>; productSeasonCode: valibot.StringSchema; minimumQuantity: valibot.NumberSchema; useMinimumQuantityAsUnit: valibot.BooleanSchema; isSpecialOrderAndOutOfStock: valibot.BooleanSchema; productSearchGrape: valibot.StringSchema; productProducer: valibot.StringSchema; productShortDescription: valibot.StringSchema; productBackupInventory: valibot.NumberSchema; productPackagingWeight: valibot.NumberSchema; productCarbonFootprint: valibot.NumberSchema; supplierId: valibot.NullableSchema, undefined, any>; productAvailableUnits: valibot.StringSchema; productSaleStatus: valibot.StringSchema; }, undefined, { productId: number; productName: string; productBottledVolume: number; productAlchoholVolume: number; productPrice: number; productFoodCategories: string; productCategory: { name: string; id: string[]; taste: boolean; sweet: boolean; subCategories: any; }; productSubCategory: any; productCountryOfOrigin: string; productSpecialReserve: boolean; productOrganic: boolean; productContainerType: string; productPlaceOfOrigin: string; productDistrictOfOrigin: string; productWine: string; productInventory: number; productYear: string; productDateOnMarket: string; productIsTemporaryOnSale: boolean; productIsGift: boolean; productIsInThema: boolean; productIsAvailableInStores: boolean; productIsSpecialOrder: boolean; productStoreSelected: { name: string; id: number; code: string; quantity: number; created: string; modified: string; } | null; productTasteGroup: string; productTasteGroup2: string; productTasteGroup2Description: any; productPackagingClosing: string; productPackagingContainer: string; productSpecialMarking: any[]; productSeasonCode: string; minimumQuantity: number; useMinimumQuantityAsUnit: boolean; isSpecialOrderAndOutOfStock: boolean; productSearchGrape: string; productProducer: string; productShortDescription: string; productBackupInventory: number; productPackagingWeight: number; productCarbonFootprint: number; supplierId: any; productAvailableUnits: string; productSaleStatus: string; }>, { productImages: { original: string; medium: string; }; productId: number; productName: string; productBottledVolume: number; productAlchoholVolume: number; productPrice: number; productFoodCategories: string; productCategory: { name: string; id: string[]; taste: boolean; sweet: boolean; subCategories: any; }; productSubCategory: any; productCountryOfOrigin: string; productSpecialReserve: boolean; productOrganic: boolean; productContainerType: string; productPlaceOfOrigin: string; productDistrictOfOrigin: string; productWine: string; productInventory: number; productYear: string; productDateOnMarket: string; productIsTemporaryOnSale: boolean; productIsGift: boolean; productIsInThema: boolean; productIsAvailableInStores: boolean; productIsSpecialOrder: boolean; productStoreSelected: { name: string; id: number; code: string; quantity: number; created: string; modified: string; } | null; productTasteGroup: string; productTasteGroup2: string; productTasteGroup2Description: any; productPackagingClosing: string; productPackagingContainer: string; productSpecialMarking: any[]; productSeasonCode: string; minimumQuantity: number; useMinimumQuantityAsUnit: boolean; isSpecialOrderAndOutOfStock: boolean; productSearchGrape: string; productProducer: string; productShortDescription: string; productBackupInventory: number; productPackagingWeight: number; productCarbonFootprint: number; supplierId: any; productAvailableUnits: string; productSaleStatus: string; }>; type Product = Output; declare enum Category { Beer = "beer", Red = "red", White = "white", Rose = "rose", Bubbly = "bubbly", Fortified = "fortified", CiderFruitAndBlends = "ciderfruitandblends", SakeAndMead = "sakeandmead", Strong = "strong", Aromatised = "aromatised" } type CategoryData = { [value in Category]?: Product[]; }; type CategoryOptions = { [value in Category]?: boolean; }; interface RequestOptions { signal?: AbortSignal; timeoutMs?: number; } interface ProductRequestOptions extends RequestOptions { /** Vínbúðin's three-digit store code (not its news/article ID). */ storeCode?: string; } interface ProductSnapshot { category: `${Category}`; storeCode: string | null; /** * Local UTC ISO timestamp captured immediately before starting the request. * This is the check-start time, not completion time or an upstream revision. * Requests started in the same millisecond may have equal timestamps. */ fetchedAt: string; total: number; products: Product[]; } interface Store { code: string; name: string; address: string; latitude: number | null; longitude: number | null; } /** A complete category snapshot, suitable for reconciliation by importers. */ declare function getProductSnapshot(category: `${Category}`, options?: ProductRequestOptions): Promise; declare function getStores(options?: RequestOptions): Promise; /** * Fetches products from the Vinbudin API * @param options - An object with keys for each category, and a boolean value to determine if the category should be fetched * @returns An object with keys for each category, and an array of products as the value */ declare const getProducts: (options?: CategoryOptions, requestOptions?: ProductRequestOptions) => Promise; export { Category, type CategoryData, type CategoryOptions, type Product, type ProductRequestOptions, type ProductSnapshot, type RequestOptions, type Store, getProductSnapshot, getProducts, getStores };