import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import type * as Square from "../../../index"; export declare namespace SnippetsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class SnippetsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: SnippetsClient.Options); /** * Retrieves your snippet from a Square Online site. A site can contain snippets from multiple snippet applications, but you can retrieve only the snippet that was added by your application. * * You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. * * * __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis). * * @param {Square.GetSnippetsRequest} request * @param {SnippetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.snippets.get({ * siteId: "site_id" * }) */ get(request: Square.GetSnippetsRequest, requestOptions?: SnippetsClient.RequestOptions): core.HttpResponsePromise; private __get; /** * Adds a snippet to a Square Online site or updates the existing snippet on the site. * The snippet code is appended to the end of the `head` element on every page of the site, except checkout pages. A snippet application can add one snippet to a given site. * * You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. * * * __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis). * * @param {Square.UpsertSnippetRequest} request * @param {SnippetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.snippets.upsert({ * siteId: "site_id", * snippet: { * content: "" * } * }) */ upsert(request: Square.UpsertSnippetRequest, requestOptions?: SnippetsClient.RequestOptions): core.HttpResponsePromise; private __upsert; /** * Removes your snippet from a Square Online site. * * You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. * * * __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis). * * @param {Square.DeleteSnippetsRequest} request * @param {SnippetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.snippets.delete({ * siteId: "site_id" * }) */ delete(request: Square.DeleteSnippetsRequest, requestOptions?: SnippetsClient.RequestOptions): core.HttpResponsePromise; private __delete; }