import type { Handle, RequestEvent } from '@sveltejs/kit'; import type * as T from 'shopify-typed-node-api/dist/clients/rest/dataTypes'; type U = Record; type TopicsMap = { 'app_purchases_one_time/update': U; 'app_subscriptions/approaching_capped_amount': U; 'app_subscriptions/update': U; 'app/uninstalled': U; 'attributed_sessions/first': U; 'attributed_sessions/last': U; 'audit_events/admin_api_activity': U; 'bulk_operations/finish': U; 'carts/create': U; 'carts/update': U; 'channels/delete': U; 'checkouts/create': T._Checkout; 'checkouts/delete': T._Checkout; 'checkouts/update': T._Checkout; 'collections/create': T._Collection; 'collections/delete': T._Collection; 'collections/update': T._Collection; 'collection_listings/add': T._CollectionListing; 'collection_listings/remove': T._CollectionListing; 'collection_listings/update': T._CollectionListing; 'collection_publications/create': U; 'collection_publications/delete': U; 'collection_publications/update': U; 'customers/create': T._Customer; 'customers/delete': T._Customer; 'customers/disable': T._Customer; 'customers/enable': T._Customer; 'customers_marketing_consent/update': U; 'customers/update': T._Customer; 'customer_groups/create': U; 'customer_groups/delete': U; 'customer_groups/update': U; 'customer_payment_methods/create': U; 'customer_payment_methods/revoke': U; 'customer_payment_methods/update': U; 'disputes/create': T._Dispute; 'disputes/update': T._Dispute; 'domains/create': T._Dispute; 'domains/destroy': U; 'domains/update': U; 'draft_orders/create': T._DraftOrder; 'draft_orders/delete': T._DraftOrder; 'draft_orders/update': T._DraftOrder; 'fulfillments/create': T._Fulfillment; 'fulfillments/update': T._Fulfillment; 'fulfillment_events/create': T._FulfillmentEvent; 'fulfillment_events/delete': T._FulfillmentEvent; 'fulfillment_orders/cancellation_request_accepted': T._FulfillmentOrder; 'fulfillment_orders/cancellation_request_rejected': T._FulfillmentOrder; 'fulfillment_orders/cancellation_request_submitted': T._FulfillmentOrder; 'fulfillment_orders/cancelled': T._FulfillmentOrder; 'fulfillment_orders/fulfillment_request_accepted': T._FulfillmentOrder; 'fulfillment_orders/fulfillment_request_rejected': T._FulfillmentOrder; 'fulfillment_orders/fulfillment_request_submitted': T._FulfillmentOrder; 'fulfillment_orders/fulfillment_service_failed_to_complete': T._FulfillmentOrder; 'fulfillment_orders/hold_released': T._FulfillmentOrder; 'fulfillment_orders/line_items_prepared_for_local_delivery': T._FulfillmentOrder; 'fulfillment_orders/line_items_prepared_for_pickup': T._FulfillmentOrder; 'fulfillment_orders/moved': T._FulfillmentOrder; 'fulfillment_orders/order_routing_complete': T._FulfillmentOrder; 'fulfillment_orders/placed_on_hold': T._FulfillmentOrder; 'fulfillment_orders/rescheduled': T._FulfillmentOrder; 'fulfillment_orders/scheduled_fulfillment_order_ready': T._FulfillmentOrder; 'inventory_items/create': T._InventoryItem; 'inventory_items/delete': T._InventoryItem; 'inventory_items/update': T._InventoryItem; 'inventory_levels/connect': T._InventoryLevel; 'inventory_levels/disconnect': T._InventoryLevel; 'inventory_levels/update': T._InventoryLevel; 'locales/create': U; 'locales/update': U; 'locations/activate': T._Location; 'locations/create': T._Location; 'locations/deactivate': T._Location; 'locations/delete': T._Location; 'locations/update': T._Location; 'markets/create': U; 'markets/delete': U; 'markets/update': U; 'orders/cancelled': T._Order; 'orders/create': T._Order; 'orders/delete': T._Order; 'orders/edited': T._Order; 'orders/fulfilled': T._Order; 'orders/paid': T._Order; 'orders/partially_fulfilled': T._Order; 'orders/updated': T._Order; 'order_transactions/create': T._Transaction; 'payment_schedules/due': T._PaymentSchedule; 'payment_terms/create': T._PaymentTerm; 'payment_terms/delete': T._PaymentTerm; 'payment_terms/update': T._PaymentTerm; 'products/create': T._Product; 'products/delete': T._Product; 'products/update': T._Product; 'product_listings/add': T._ProductListing; 'product_listings/remove': T._ProductListing; 'product_listings/update': T._ProductListing; 'product_publications/create': U; 'product_publications/delete': U; 'product_publications/update': U; 'profiles/create': U; 'profiles/delete': U; 'profiles/update': U; 'refunds/create': T._Refund; 'returns/approve': U; 'returns/cancel': U; 'returns/close': U; 'returns/decline': U; 'returns/reopen': U; 'returns/request': U; 'reverse_deliveries/attach_deliverable': U; 'reverse_fulfillment_orders/dispose': U; 'scheduled_product_listings/add': U; 'scheduled_product_listings/remove': U; 'scheduled_product_listings/update': U; 'segments/create': U; 'segments/delete': U; 'segments/update': U; 'selling_plan_groups/create': U; 'selling_plan_groups/delete': U; 'selling_plan_groups/update': U; 'shipping_addresses/create': T._ShippingAddress; 'shipping_addresses/update': T._ShippingAddress; 'shop/update': T._Shop; 'subscription_billing_attempts/challenged': U; 'subscription_billing_attempts/failure': U; 'subscription_billing_attempts/success': U; 'subscription_billing_cycle_edits/create': U; 'subscription_billing_cycle_edits/delete': U; 'subscription_billing_cycle_edits/update': U; 'subscription_contracts/create': U; 'subscription_contracts/update': U; 'tax_services/create': T._TaxLine; 'tax_services/update': T._TaxLine; 'tender_transactions/create': T._TenderTransaction; 'themes/create': T._Theme; 'themes/delete': T._Theme; 'themes/publish': T._Theme; 'themes/update': T._Theme; 'variants/in_stock': T._Variant; 'variants/out_of_stock': T._Variant; }; type Topics = keyof TopicsMap; export type ShopifyWebhooksHandlers = { [K in Topics]?: (event: RequestEvent, payload: TopicsMap[K]) => Promise; }; export declare const shopifyWebhooks: (handlers?: ShopifyWebhooksHandlers) => Handle; export {};