import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { Balance, ListBalancesOptions, ListBalancesResponse, ChangeBalanceOptions, ChangeBalanceResponse, ChangeBalanceApplicationErrors, RevertBalanceChangeOptions, RevertBalanceChangeResponse, RevertBalanceChangeApplicationErrors, BalancesQueryBuilder, BalanceQuery, typedQueryBalances } from './index.typings.js'; export { AccountInfo, ActionEvent, AdjustOptions, ApplicationError, BalanceAmount, BalanceChangeBalanceRequest, BalanceChangeBalanceRequestOperationOneOf, BalanceExceededLimits, BalanceQuerySpec, BalanceType, BalanceTypeWithLiterals, BalancesQueryResult, BulkActionMetadata, BulkChangeBalanceResult, BulkChangeBalancesRequest, BulkChangeBalancesResponse, ChangeAlreadyReverted, ChangeBalanceOptionsOperationOneOf, ChangeBalanceRequest, ChangeBalanceRequestOperationOneOf, ChangeBalanceRequestType, ChangeBalanceRequestTypeWithLiterals, CommonIdentificationData, CommonIdentificationDataIdOneOf, CommonQueryWithEntityContext, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetBalanceRequest, GetBalanceResponse, GetTransactionReversibilityRequest, GetTransactionReversibilityResponse, HealBalanceRequest, HealBalanceResponse, HealBalanceTenantRequest, HealBalanceTenantResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, Item, ItemMetadata, LimitRule, LimitRuleWithLiterals, ListBalancesRequest, MessageEnvelope, NotEnoughBalance, PoolInfo, PoolStatus, PoolStatusWithLiterals, QueryBalancesRequest, QueryBalancesResponse, RestoreInfo, RevertBalanceChangeRequest, RolloverConfigurationInfo, SetInitialOptions, SetOptions, SortOrder, SortOrderWithLiterals, Sorting, TransactionDetails, TransactionReversibility, TransactionReversibilityWithLiterals, Type, TypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function getBalance$1(httpClient: HttpClient): GetBalanceSignature; interface GetBalanceSignature { /** * Retrieves a balance. * @param - ID of the pool associated with the balance to retrieve. This is also the ID of the balance. * @returns Retrieved balance. */ (poolId: string): Promise>; } declare function listBalances$1(httpClient: HttpClient): ListBalancesSignature; interface ListBalancesSignature { /** * Retrieves a list of balances. */ (options?: ListBalancesOptions): Promise>; } declare function changeBalance$1(httpClient: HttpClient): ChangeBalanceSignature; interface ChangeBalanceSignature { /** * Changes the number of available credits in a balance. * * You can adjust or set the number of available credits. * @param - ID of the pool associated with the balance to change. This is also the ID of the balance. * @param - Unique identifier, generated by the client. * Used to recognize repeated attempts to make the same request. */ (poolId: string, idempotencyKey: string, options?: ChangeBalanceOptions): Promise & { __applicationErrorsType?: ChangeBalanceApplicationErrors; }>; } declare function revertBalanceChange$1(httpClient: HttpClient): RevertBalanceChangeSignature; interface RevertBalanceChangeSignature { /** * Reverts a transaction created by calling Change Balance. * * For example, if a transaction increased a balance's available credits by 5, * calling Revert Balance Change with the transaction's ID will decrease the balance's available credit by 5. * * > **Note:** If the Change Balance call set the balance, Revert Transaction reverts the amount the balance changed by, ensuring subsequent balance changes are still reflected after the reversion. * @param - ID of the transaction associated with the balance change to revert. * @param - Ignored value, kept for backward compatibility. Idempotency is now handled by the system. */ (transactionId: string, idempotencyKey: string, options?: RevertBalanceChangeOptions): Promise; } declare function customQueryBalances(httpClient: HttpClient): { (): BalancesQueryBuilder; (query: BalanceQuery): ReturnType; }; declare const getBalance: MaybeContext & typeof getBalance$1>; declare const listBalances: MaybeContext & typeof listBalances$1>; declare const changeBalance: MaybeContext & typeof changeBalance$1>; declare const revertBalanceChange: MaybeContext & typeof revertBalanceChange$1>; declare const queryBalances: MaybeContext & typeof customQueryBalances>; export { Balance, BalanceQuery, BalancesQueryBuilder, ChangeBalanceApplicationErrors, ChangeBalanceOptions, ChangeBalanceResponse, ListBalancesOptions, ListBalancesResponse, RevertBalanceChangeApplicationErrors, RevertBalanceChangeOptions, RevertBalanceChangeResponse, changeBalance, getBalance, listBalances, queryBalances, revertBalanceChange };