import type { FACET_CROSS_SELLING_MAP } from '../../utils/facets'; import { type CommercialAuthorizationResponse, type ICommercialAuthorizationByOrderId, type IProcessOrderAuthorization, type IUserOrderCancel, type QueryListUserOrdersArgs, type StoreMarketingData, type UserOrder, type UserOrderCancel, type UserOrderListResult } from '../../../..'; import type { Context, Options } from '../../index'; import type { Channel } from '../../utils/channel'; import type { ContractResponse } from './Contract'; import type { Address, AddressInput } from './types/Address'; import type { Brand } from './types/Brand'; import type { CategoryTree } from './types/CategoryTree'; import type { MasterDataResponse } from './types/Newsletter'; import type { OrderForm, OrderFormInputItem } from './types/OrderForm'; import type { PickupPoints, PickupPointsInput } from './types/PickupPoints'; import type { PortalPagetype } from './types/Portal'; import type { PortalProduct } from './types/Product'; import type { Region, RegionInput } from './types/Region'; import type { SalesChannel } from './types/SalesChannel'; import type { Session } from './types/Session'; import type { DeliveryMode, SelectedAddress } from './types/ShippingData'; import type { Simulation, SimulationArgs, SimulationOptions } from './types/Simulation'; import type { ScopesByUnit, UnitResponse } from './types/Unit'; import type { VtexIdResponse } from './types/VtexId'; type ValueOf = T extends Record ? K : never; export declare const VtexCommerce: ({ account, environment, incrementAddress, subDomainPrefix }: Options, ctx: Context) => { catalog: { salesChannel: (sc: string) => Promise; brand: { list: () => Promise; }; category: { tree: (depth?: number) => Promise; }; portal: { pagetype: (slug: string) => Promise; }; products: { crossselling: ({ type, productId, groupByProduct, }: { type: ValueOf; productId: string; groupByProduct?: boolean | undefined; }) => Promise; }; }; checkout: { simulation: (args: SimulationArgs, { salesChannel }?: SimulationOptions) => Promise; shippingData: ({ id, index, deliveryMode, selectedAddresses, }: { id: string; index: number; deliveryMode?: DeliveryMode | null | undefined; selectedAddresses: SelectedAddress[]; }, setDeliveryWindow?: boolean) => Promise; marketingData: ({ id, marketingData, }: { id: string; marketingData: StoreMarketingData; }) => Promise; orderForm: ({ id, refreshOutdatedData, channel, }: { id?: string | undefined; refreshOutdatedData?: boolean | undefined; channel?: Required | undefined; }) => Promise; clearOrderFormMessages: ({ id }: { id: string; }) => Promise; updateOrderFormItems: ({ id, orderItems, allowOutdatedData, salesChannel, shouldSplitItem, }: { id: string; orderItems: OrderFormInputItem[]; allowOutdatedData?: "paymentData" | undefined; salesChannel?: string | undefined; shouldSplitItem?: boolean | null | undefined; }) => Promise; setCustomData: ({ id, appId, key, value, }: { id: string; appId: string; key: string; value: string; }) => Promise; region: ({ postalCode, geoCoordinates, country, salesChannel, }: RegionInput) => Promise; address: ({ postalCode, country, }: AddressInput) => Promise
; cancelOrder: ({ orderId, customerEmail, reason, }: IUserOrderCancel) => Promise | undefined; pickupPoints: ({ geoCoordinates, }: PickupPointsInput) => Promise; }; session: (search: string) => Promise; subscribeToNewsletter: (data: { name: string; email: string; }) => Promise; profile: { addresses: (userId: string) => Promise>; }; oms: { userOrder: ({ orderId }: { orderId: string; }) => Promise; listUserOrders: ({ page, status, dateInitial, dateFinal, text, clientEmail, perPage, pendingMyApproval, }: QueryListUserOrdersArgs) => Promise; getCommercialAuthorizationsByOrderId: ({ orderId, }: ICommercialAuthorizationByOrderId) => Promise; processOrderAuthorization: ({ orderAuthorizationId, dimensionId, ruleId, approved, }: IProcessOrderAuthorization) => Promise; }; units: { getUnitByUserId: ({ userId, }: { userId: string; }) => Promise; getOrgUnitById: ({ orgUnitId, }: { orgUnitId: string; }) => Promise; getScopesByOrgUnit: ({ orgUnitId, }: { orgUnitId: string; }) => Promise; }; licenseManager: { getUserById: ({ userId, }: { userId: string; }) => Promise<{ id: string; name: string; email: string; }>; getUserByEmail: ({ email, }: { email: string; }) => Promise<{ id: string; name: string; email: string; }>; }; masterData: { getContractById: ({ contractId, }: { contractId: string; }) => Promise; getShopperById: ({ userId, }: { userId: string; }) => Promise>; }; vtexid: { validate: () => Promise; }; }; export {}; //# sourceMappingURL=index.d.ts.map