import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import type * as Square from "../../../index"; import { AccountsClient } from "../resources/accounts/client/Client"; import { ProgramsClient } from "../resources/programs/client/Client"; import { RewardsClient } from "../resources/rewards/client/Client"; export declare namespace LoyaltyClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class LoyaltyClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _accounts: AccountsClient | undefined; protected _programs: ProgramsClient | undefined; protected _rewards: RewardsClient | undefined; constructor(options?: LoyaltyClient.Options); get accounts(): AccountsClient; get programs(): ProgramsClient; get rewards(): RewardsClient; /** * Searches for loyalty events. * * A Square loyalty program maintains a ledger of events that occur during the lifetime of a * buyer's loyalty account. Each change in the point balance * (for example, points earned, points redeemed, and points expired) is * recorded in the ledger. Using this endpoint, you can search the ledger for events. * * Search results are sorted by `created_at` in descending order. * * @param {Square.SearchLoyaltyEventsRequest} request * @param {LoyaltyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.loyalty.searchEvents({ * query: { * filter: { * orderFilter: { * orderId: "PyATxhYLfsMqpVkcKJITPydgEYfZY" * } * } * }, * limit: 30 * }) */ searchEvents(request?: Square.SearchLoyaltyEventsRequest, requestOptions?: LoyaltyClient.RequestOptions): core.HttpResponsePromise; private __searchEvents; }