import { Language, PriceWithPricePerUnit, Resources, SingleValueAttribute } from './types'; export declare type AvailabilityType = 'Now' | 'Backorderable' | 'Preorderable'; export interface Availability { MinOrderQuantity?: number; MaxOrderQuantity?: number; Message?: string; Type?: AvailabilityType; } export declare type AvailabilityResource = Resources; export declare type ConditionValue = 'New' | 'Used' | 'Collectible' | 'Refurbished'; export interface ConditionNote { Locale: Language; Value: string; } export declare type SubConditionValue = 'Acceptable' | 'Club' | 'Good' | 'LikeNew' | 'New' | 'OEM' | 'Other' | 'OpenBox' | 'Poor' | 'Refurbished' | 'RefurbishedWarranty' | 'VeryGood' | 'Warranty'; export interface SubCondition extends SingleValueAttribute { Value: SubConditionValue; } export interface Condition extends SingleValueAttribute { ConditionNote?: ConditionNote; Value: ConditionValue; SubCondition?: SubCondition; } export declare type ConditionResource = Resources; export interface DeliveryInfo { IsAmazonFulfilled?: boolean; IsFreeShippingEligible?: boolean; IsPrimeEligible?: boolean; } export declare type DeliveryInfoResource = Resources; export interface LoyaltyPoints { Points: number; } export interface MerchantInfo { DefaultShippingCountry: string; FeedbackCount: number; FeedbackRating: number; Id: string; Name: string; } export interface OfferPrice extends PriceWithPricePerUnit { Savings: PriceWithPricePerUnit & { Percentage: number; }; } export interface ProgramEligibility { IsPrimeExclusive?: boolean; IsPrimePantry?: boolean; } export declare type ProgramEligibilityResource = Resources; export interface Promotions extends PriceWithPricePerUnit { DiscountPercent: string; Type: 'SNS'; } export interface Listing { Availability: Availability; Condition?: Condition; DeliveryInfo: DeliveryInfo; Id: string; IsBuyBoxWinner?: boolean; LoyaltyPoints: LoyaltyPoints; MerchantInfo?: MerchantInfo; Price?: OfferPrice; ProgramEligibility: ProgramEligibility; Promotions?: Promotions; SavingBasis?: PriceWithPricePerUnit; ViolateMAP: boolean; } export declare type ListingResource = Resources | AvailabilityResource | ConditionResource | DeliveryInfoResource | ProgramEligibilityResource; export interface Summary { Condition: Condition; HighestPrice?: PriceWithPricePerUnit; LowestPrice?: PriceWithPricePerUnit; OfferCount?: number; } export declare type SummaryResource = Resources; export interface Offers { Listings: Listing[]; Summaries: Summary[]; } export declare type OffersResource = ListingResource | SummaryResource;