import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { CreateLoyaltyImportOptions, CreateLoyaltyImportResponse, LoyaltyImport, GetErrorFileDownloadUrlResponse, ExecuteLoyaltyImportOptions, ExecuteLoyaltyImportResponse, CreateLoyaltyImportFileUrlResponse, LoyaltyImportCreatedEnvelope, LoyaltyImportsQueryBuilder, LoyaltyImportQuery, typedQueryLoyaltyImports } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, BaseEventMetadata, ColumnName, ColumnNameWithLiterals, CommonQueryWithEntityContext, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteLoyaltyImportRequest, DeleteLoyaltyImportResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExecuteLoyaltyImportRequest, FileHeader, FileMetadata, GetErrorFileDownloadUrlRequest, GetLoyaltyImportRequest, GetLoyaltyImportResponse, HeaderMapping, HeaderMappingInfo, IdentificationData, IdentificationDataIdOneOf, ImportFinished, ImportResult, ImportStatus, ImportStatusWithLiterals, LoyaltyImportQuerySpec, LoyaltyImportsQueryResult, MessageEnvelope, ParseResult, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse, RestoreInfo, SampleDataRow, SortOrder, SortOrderWithLiterals, Sorting, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createLoyaltyImport$1(httpClient: HttpClient): CreateLoyaltyImportSignature; interface CreateLoyaltyImportSignature { /** * Creates an import object based on an uploaded file. * * Call this method after uploading your file to the URL obtained from Create Loyalty Import File Url. * @param - URL of the file to import. */ (fileUrl: string, options?: CreateLoyaltyImportOptions): Promise>; } declare function getLoyaltyImport$1(httpClient: HttpClient): GetLoyaltyImportSignature; interface GetLoyaltyImportSignature { /** * Retrieves a loyalty import. * @param - Loyalty import ID. * @returns Retrieved loyalty import. */ (loyaltyImportId: string): Promise>; } declare function getErrorFileDownloadUrl$1(httpClient: HttpClient): GetErrorFileDownloadUrlSignature; interface GetErrorFileDownloadUrlSignature { /** * Retrieves the download URL for the error file of a failed loyalty import. * * If an import fails, the `importResult.errorFileExists` field in the `LoyaltyImport` object is set to `true`. * * Use this method to get the URL of the error file, which contains details about which items couldn't be imported and why. * @param - Loyalty import ID. */ (loyaltyImportId: string): Promise; } declare function executeLoyaltyImport$1(httpClient: HttpClient): ExecuteLoyaltyImportSignature; interface ExecuteLoyaltyImportSignature { /** * Starts the actual import process for a loyalty import. * * Call this method after the loyalty import object reaches the `"PARSED"` status. * @param - Loyalty import ID. */ (loyaltyImportId: string, options?: ExecuteLoyaltyImportOptions): Promise>; } declare function createLoyaltyImportFileUrl$1(httpClient: HttpClient): CreateLoyaltyImportFileUrlSignature; interface CreateLoyaltyImportFileUrlSignature { /** * Creates a URL for uploading a loyalty import file. * * This method is the first step in the loyalty import process. It returns a file path and an upload URL, which you'll use in subsequent steps of the import process. */ (): Promise; } declare const onLoyaltyImportCreated$1: EventDefinition; declare function customQueryLoyaltyImports(httpClient: HttpClient): { (): LoyaltyImportsQueryBuilder; (query: LoyaltyImportQuery): ReturnType; }; declare const createLoyaltyImport: MaybeContext & typeof createLoyaltyImport$1>; declare const getLoyaltyImport: MaybeContext & typeof getLoyaltyImport$1>; declare const getErrorFileDownloadUrl: MaybeContext & typeof getErrorFileDownloadUrl$1>; declare const executeLoyaltyImport: MaybeContext & typeof executeLoyaltyImport$1>; declare const createLoyaltyImportFileUrl: MaybeContext & typeof createLoyaltyImportFileUrl$1>; declare const queryLoyaltyImports: MaybeContext & typeof customQueryLoyaltyImports>; /** * Triggered when a loyalty import is created. */ declare const onLoyaltyImportCreated: BuildEventDefinition & typeof onLoyaltyImportCreated$1; export { CreateLoyaltyImportFileUrlResponse, CreateLoyaltyImportOptions, CreateLoyaltyImportResponse, ExecuteLoyaltyImportOptions, ExecuteLoyaltyImportResponse, GetErrorFileDownloadUrlResponse, LoyaltyImport, LoyaltyImportCreatedEnvelope, LoyaltyImportQuery, LoyaltyImportsQueryBuilder, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, onLoyaltyImportCreated, queryLoyaltyImports };