import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { ReceiptPreset, CreateReceiptPresetApplicationErrors, GetDefaultReceiptPresetResponse, GetDefaultReceiptPresetApplicationErrors, UpdateReceiptPreset, UpdateReceiptPresetApplicationErrors, SetDefaultReceiptPresetResponse, DeleteReceiptPresetApplicationErrors, ListReceiptPresetsResponse, ListReceiptPresetsApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, ReceiptPresetCreatedEnvelope, ReceiptPresetDeletedEnvelope, ReceiptPresetUpdatedEnvelope } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, BusinessDisplayOptions, CreateReceiptPresetRequest, CreateReceiptPresetResponse, CustomField, CustomFields, CustomerDisplayOptions, DeleteReceiptPresetRequest, DeleteReceiptPresetResponse, DisplaySettings, DisplayValues, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, FooterCustomField, GetDefaultReceiptPresetRequest, GetReceiptPresetRequest, GetReceiptPresetResponse, IdentificationData, IdentificationDataIdOneOf, ItemsDisplayOption, ListReceiptPresetsRequest, MessageEnvelope, RestoreInfo, SetDefaultReceiptPresetRequest, TotalsDisplayOption, UpdateExtendedFieldsRequest, UpdateReceiptPresetRequest, UpdateReceiptPresetResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function createReceiptPreset$1(httpClient: HttpClient): CreateReceiptPresetSignature; interface CreateReceiptPresetSignature { /** * Creates a receipt preset. * @param - Receipt preset to create. * @returns Created receipt preset. */ (receiptPreset: ReceiptPreset): Promise & { __applicationErrorsType?: CreateReceiptPresetApplicationErrors; }>; } declare function getReceiptPreset$1(httpClient: HttpClient): GetReceiptPresetSignature; interface GetReceiptPresetSignature { /** * Retrieves a receipt preset. * @param - Receipt preset ID to retrieve. * @returns Requested receipt preset. */ (receiptPresetId: string): Promise>; } declare function getDefaultReceiptPreset$1(httpClient: HttpClient): GetDefaultReceiptPresetSignature; interface GetDefaultReceiptPresetSignature { /** * Retrieves the default receipt preset. * * The default preset is used during receipt creation when a preset isn't specified or doesn't exist. */ (): Promise & { __applicationErrorsType?: GetDefaultReceiptPresetApplicationErrors; }>; } declare function updateReceiptPreset$1(httpClient: HttpClient): UpdateReceiptPresetSignature; interface UpdateReceiptPresetSignature { /** * Updates a receipt preset. * * * Each time the receipt preset is updated, * `revision` increments by 1. * The current `revision` must be passed when updating the receipt preset. * This ensures you're working with the latest receipt preset * and prevents unintended overwrites. * @param - Receipt preset ID. * @returns Updated receipt preset. */ (_id: string, receiptPreset: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateReceiptPresetApplicationErrors; }>; } declare function setDefaultReceiptPreset$1(httpClient: HttpClient): SetDefaultReceiptPresetSignature; interface SetDefaultReceiptPresetSignature { /** * Sets a receipt preset as default. * * The default preset is used during receipt creation when a preset isn't specified or doesn't exist. * @param - Receipt preset ID to set as default. */ (receiptPresetId: string): Promise>; } declare function deleteReceiptPreset$1(httpClient: HttpClient): DeleteReceiptPresetSignature; interface DeleteReceiptPresetSignature { /** * Permanently deletes a receipt preset. * @param - Receipt preset ID to delete. */ (receiptPresetId: string): Promise; } declare function listReceiptPresets$1(httpClient: HttpClient): ListReceiptPresetsSignature; interface ListReceiptPresetsSignature { /** * Lists all available receipt presets. * * By default the returned receipt presets are sorted by `default` and `updatedDate` in descending order. */ (): Promise & { __applicationErrorsType?: ListReceiptPresetsApplicationErrors; }>; } declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature; interface UpdateExtendedFieldsSignature { /** * Updates the extended fields of a receipt preset, without incrementing revision. * @param - ID of the entity to update. * @param - Identifier for the app whose extended fields are being updated. * @param - Field options. The `namespaceData` object **must** be passed. */ (_id: string, namespace: string, options: NonNullablePaths): Promise>; } declare const onReceiptPresetCreated$1: EventDefinition; declare const onReceiptPresetDeleted$1: EventDefinition; declare const onReceiptPresetUpdated$1: EventDefinition; declare const createReceiptPreset: MaybeContext & typeof createReceiptPreset$1>; declare const getReceiptPreset: MaybeContext & typeof getReceiptPreset$1>; declare const getDefaultReceiptPreset: MaybeContext & typeof getDefaultReceiptPreset$1>; declare const updateReceiptPreset: MaybeContext & typeof updateReceiptPreset$1>; declare const setDefaultReceiptPreset: MaybeContext & typeof setDefaultReceiptPreset$1>; declare const deleteReceiptPreset: MaybeContext & typeof deleteReceiptPreset$1>; declare const listReceiptPresets: MaybeContext & typeof listReceiptPresets$1>; declare const updateExtendedFields: MaybeContext & typeof updateExtendedFields$1>; /** * Triggered when a receipt preset is created. */ declare const onReceiptPresetCreated: BuildEventDefinition & typeof onReceiptPresetCreated$1; /** * Triggered when a receipt preset is deleted. */ declare const onReceiptPresetDeleted: BuildEventDefinition & typeof onReceiptPresetDeleted$1; /** * Triggered when a receipt preset is updated. */ declare const onReceiptPresetUpdated: BuildEventDefinition & typeof onReceiptPresetUpdated$1; export { CreateReceiptPresetApplicationErrors, DeleteReceiptPresetApplicationErrors, GetDefaultReceiptPresetApplicationErrors, GetDefaultReceiptPresetResponse, ListReceiptPresetsApplicationErrors, ListReceiptPresetsResponse, ReceiptPreset, ReceiptPresetCreatedEnvelope, ReceiptPresetDeletedEnvelope, ReceiptPresetUpdatedEnvelope, SetDefaultReceiptPresetResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateReceiptPreset, UpdateReceiptPresetApplicationErrors, createReceiptPreset, deleteReceiptPreset, getDefaultReceiptPreset, getReceiptPreset, listReceiptPresets, onReceiptPresetCreated, onReceiptPresetDeleted, onReceiptPresetUpdated, setDefaultReceiptPreset, updateExtendedFields, updateReceiptPreset };