/**
 * This file was auto-generated by Fern from our API Definition.
 */
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Merge from "../../../../../index";
export declare namespace Accounts {
    interface Options {
        environment?: core.Supplier<environments.MergeEnvironment | string>;
        /** Specify a custom URL to connect the client to. */
        baseUrl?: core.Supplier<string>;
        apiKey: core.Supplier<core.BearerToken>;
        /** Override the X-Account-Token header */
        accountToken?: core.Supplier<string | undefined>;
        /** Additional headers to include in requests. */
        headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
        fetcher?: core.FetchFunction;
    }
    interface RequestOptions {
        /** The maximum time to wait for a response in seconds. */
        timeoutInSeconds?: number;
        /** The number of times to retry the request. Defaults to 2. */
        maxRetries?: number;
        /** A hook to abort the request. */
        abortSignal?: AbortSignal;
        /** Override the X-Account-Token header */
        accountToken?: string | undefined;
        /** Additional query string parameters to include in the request. */
        queryParams?: Record<string, unknown>;
        /** Additional headers to include in the request. */
        headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
    }
}
export declare class Accounts {
    protected readonly _options: Accounts.Options;
    constructor(_options: Accounts.Options);
    /**
     * Returns a list of `Account` objects.
     *
     * @param {Merge.accounting.AccountsListRequest} request
     * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.accounting.accounts.list()
     */
    list(request?: Merge.accounting.AccountsListRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Merge.accounting.PaginatedAccountList>;
    private __list;
    /**
     * Creates an `Account` object with the given values.
     *
     * @param {Merge.accounting.AccountEndpointRequest} request
     * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.accounting.accounts.create({
     *         model: {}
     *     })
     */
    create(request: Merge.accounting.AccountEndpointRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Merge.accounting.AccountResponse>;
    private __create;
    /**
     * Returns an `Account` object with the given `id`.
     *
     * @param {string} id
     * @param {Merge.accounting.AccountsRetrieveRequest} request
     * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.accounting.accounts.retrieve("id")
     */
    retrieve(id: string, request?: Merge.accounting.AccountsRetrieveRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Merge.accounting.Account>;
    private __retrieve;
    /**
     * Returns metadata for `Account` POSTs.
     *
     * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.accounting.accounts.metaPostRetrieve()
     */
    metaPostRetrieve(requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Merge.accounting.MetaResponse>;
    private __metaPostRetrieve;
    protected _getAuthorizationHeader(): Promise<string>;
}
