/**
 * 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 Attachments {
    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 Attachments {
    protected readonly _options: Attachments.Options;
    constructor(_options: Attachments.Options);
    /**
     * Returns a list of `Attachment` objects.
     *
     * @param {Merge.ats.AttachmentsListRequest} request
     * @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ats.attachments.list()
     */
    list(request?: Merge.ats.AttachmentsListRequest, requestOptions?: Attachments.RequestOptions): core.HttpResponsePromise<Merge.ats.PaginatedAttachmentList>;
    private __list;
    /**
     * Creates an `Attachment` object with the given values.
     *
     * @param {Merge.ats.AttachmentEndpointRequest} request
     * @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ats.attachments.create({
     *         model: {},
     *         remoteUserId: "remote_user_id"
     *     })
     */
    create(request: Merge.ats.AttachmentEndpointRequest, requestOptions?: Attachments.RequestOptions): core.HttpResponsePromise<Merge.ats.AttachmentResponse>;
    private __create;
    /**
     * Returns an `Attachment` object with the given `id`.
     *
     * @param {string} id
     * @param {Merge.ats.AttachmentsRetrieveRequest} request
     * @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ats.attachments.retrieve("id")
     */
    retrieve(id: string, request?: Merge.ats.AttachmentsRetrieveRequest, requestOptions?: Attachments.RequestOptions): core.HttpResponsePromise<Merge.ats.Attachment>;
    private __retrieve;
    /**
     * Returns metadata for `Attachment` POSTs.
     *
     * @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.ats.attachments.metaPostRetrieve()
     */
    metaPostRetrieve(requestOptions?: Attachments.RequestOptions): core.HttpResponsePromise<Merge.ats.MetaResponse>;
    private __metaPostRetrieve;
    protected _getAuthorizationHeader(): Promise<string>;
}
