import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Refund, CreateRefundOptions, CreateRefundApplicationErrors, RefundCreatedEnvelope, RefundUpdatedEnvelope, RefundsQueryBuilder, RefundQuery, typedQueryRefunds } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, CommonQueryWithEntityContext, CreateRefundRequest, CreateRefundResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetRefundRequest, GetRefundResponse, GetRefundabilityRequest, GetRefundabilityResponse, IdentificationData, IdentificationDataIdOneOf, Initiator, InitiatorWithLiterals, MessageEnvelope, QueryRefundsRequest, QueryRefundsResponse, RefundDetails, RefundQuerySpec, Refundability, RefundabilityDetailsOneOf, RefundsQueryResult, RejectionDetails, RejectionReason, RejectionReasonWithLiterals, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusInfo, StatusWithLiterals, SyncRefundRequest, SyncRefundResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createRefund$1(httpClient: HttpClient): CreateRefundSignature; interface CreateRefundSignature { /** * Creates a refund. * * The refunding process starts immediately after a refund entity is created. * * If you specify an `amount`, you must also specify a `currency_code`. This currency should be the same as the currency of the charge. * If `amount` and `currency_code` are not specified, the refund is created for the full charge amount. If the charge was already partially refunded, this refund will fail. * @param - Refund to be created. * @returns The created refund. */ (refund: NonNullablePaths, options?: CreateRefundOptions): Promise & { __applicationErrorsType?: CreateRefundApplicationErrors; }>; } declare function getRefund$1(httpClient: HttpClient): GetRefundSignature; interface GetRefundSignature { /** * Retrieves a refund. * @param - ID of the refund to retrieve. * @returns The requested refund. */ (refundId: string): Promise>; } declare const onRefundCreated$1: EventDefinition; declare const onRefundUpdated$1: EventDefinition; declare function customQueryRefunds(httpClient: HttpClient): { (): RefundsQueryBuilder; (query: RefundQuery): ReturnType; }; declare const createRefund: MaybeContext & typeof createRefund$1>; declare const getRefund: MaybeContext & typeof getRefund$1>; declare const queryRefunds: MaybeContext & typeof customQueryRefunds>; /** */ declare const onRefundCreated: BuildEventDefinition & typeof onRefundCreated$1; /** */ declare const onRefundUpdated: BuildEventDefinition & typeof onRefundUpdated$1; export { CreateRefundApplicationErrors, CreateRefundOptions, Refund, RefundCreatedEnvelope, RefundQuery, RefundUpdatedEnvelope, RefundsQueryBuilder, createRefund, getRefund, onRefundCreated, onRefundUpdated, queryRefunds };