import type { CartLine, Storage, ShippingOption, PickupLocationOption, CheckoutApi, StandardApi, ExtensionTarget, RedeemableApi, PaymentOptionItemApi } from '@shopify/ui-extensions/checkout'; /** * Creates a mock `CartLine` with sensible defaults. * Pass a partial override to customize any field. */ export declare function createCartLine(overrides?: Partial): CartLine; /** * Creates a mock `ShippingOption` with sensible defaults. */ export declare function createShippingOption(overrides?: Partial): ShippingOption; type PickupLocation = PickupLocationOption['location']; /** * Creates a mock pickup `Location` object with sensible defaults. */ export declare function createPickupLocation(overrides?: Partial): PickupLocation; /** * Creates a mock `PickupLocationOption` with sensible defaults. */ export declare function createPickupLocationOption(overrides?: Partial): PickupLocationOption; /** * Creates a mock `Storage` instance. * * Optionally accepts a `Record` of initial entries. */ export declare function createStorage(initialEntries?: Record): Storage; /** * Maps each checkout mutation API name to its result type, * derived from the actual API method signatures. */ export interface CheckoutMutationResults { applyAttributeChange: Awaited>; applyCartLinesChange: Awaited>; applyDiscountCodeChange: Awaited>; applyGiftCardChange: Awaited>; applyMetafieldChange: Awaited>; applyNoteChange: Awaited>; applyTrackingConsentChange: Awaited['applyTrackingConsentChange']>>; applyPaymentMethodAttributesChange: Awaited>; applyRedeemableChange: Awaited>; } /** * Creates a typed mock result for a checkout mutation API. * * @param mutation - The mutation API name (e.g. `'applyMetafieldChange'`). * @param result - Optional partial override merged with the default. * * @example * createResult('applyMetafieldChange'); * createResult('applyCartLinesChange', {type: 'error', message: 'out of stock'}); */ export declare function createResult(mutation: K, result?: Partial): CheckoutMutationResults[K]; export {}; //# sourceMappingURL=index.d.ts.map