/**
 * 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 Items {
    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>;
        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 headers to include in the request. */
        headers?: Record<string, string>;
    }
}
export declare class Items {
    protected readonly _options: Items.Options;
    constructor(_options: Items.Options);
    /**
     * Returns a list of `Item` objects.
     *
     * @param {Merge.accounting.ItemsListRequest} request
     * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.accounting.items.list()
     */
    list(request?: Merge.accounting.ItemsListRequest, requestOptions?: Items.RequestOptions): core.HttpResponsePromise<Merge.accounting.PaginatedItemList>;
    private __list;
    /**
     * Returns an `Item` object with the given `id`.
     *
     * @param {string} id
     * @param {Merge.accounting.ItemsRetrieveRequest} request
     * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.accounting.items.retrieve("id")
     */
    retrieve(id: string, request?: Merge.accounting.ItemsRetrieveRequest, requestOptions?: Items.RequestOptions): core.HttpResponsePromise<Merge.accounting.Item>;
    private __retrieve;
    protected _getAuthorizationHeader(): Promise<string>;
}
