import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import type * as Square from "../../../index"; import { CustomAttributeDefinitionsClient } from "../resources/customAttributeDefinitions/client/Client"; import { CustomAttributesClient } from "../resources/customAttributes/client/Client"; export declare namespace MerchantsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class MerchantsClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _customAttributeDefinitions: CustomAttributeDefinitionsClient | undefined; protected _customAttributes: CustomAttributesClient | undefined; constructor(options?: MerchantsClient.Options); get customAttributeDefinitions(): CustomAttributeDefinitionsClient; get customAttributes(): CustomAttributesClient; /** * Provides details about the merchant associated with a given access token. * * The access token used to connect your application to a Square seller is associated * with a single merchant. That means that `ListMerchants` returns a list * with a single `Merchant` object. You can specify your personal access token * to get your own merchant information or specify an OAuth token to get the * information for the merchant that granted your application access. * * If you know the merchant ID, you can also use the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) * endpoint to retrieve the merchant information. * * @param {Square.ListMerchantsRequest} request * @param {MerchantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.merchants.list({ * cursor: 1 * }) */ list(request?: Square.ListMerchantsRequest, requestOptions?: MerchantsClient.RequestOptions): Promise>; /** * Retrieves the `Merchant` object for the given `merchant_id`. * * @param {Square.GetMerchantsRequest} request * @param {MerchantsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.merchants.get({ * merchantId: "merchant_id" * }) */ get(request: Square.GetMerchantsRequest, requestOptions?: MerchantsClient.RequestOptions): core.HttpResponsePromise; private __get; }