/**
 * This file was auto-generated by Fern from our API Definition.
 */
/// <reference types="node" />
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
import * as Merge from "../../../../..";
import * as stream from "stream";
export declare namespace Attachments {
    interface Options {
        environment?: core.Supplier<environments.MergeEnvironment | string>;
        apiKey: core.Supplier<core.BearerToken>;
        accountToken?: core.Supplier<string | undefined>;
    }
    interface RequestOptions {
        timeoutInSeconds?: number;
    }
}
export declare class Attachments {
    protected readonly _options: Attachments.Options;
    constructor(_options: Attachments.Options);
    /**
     * Returns a list of `Attachment` objects.
     */
    list(request?: Merge.ticketing.AttachmentsListRequest, requestOptions?: Attachments.RequestOptions): Promise<Merge.ticketing.PaginatedAttachmentList>;
    /**
     * Creates an `Attachment` object with the given values.
     */
    create(request: Merge.ticketing.TicketingAttachmentEndpointRequest, requestOptions?: Attachments.RequestOptions): Promise<Merge.ticketing.TicketingAttachmentResponse>;
    /**
     * Returns an `Attachment` object with the given `id`.
     */
    retrieve(id: string, request?: Merge.ticketing.AttachmentsRetrieveRequest, requestOptions?: Attachments.RequestOptions): Promise<Merge.ticketing.Attachment>;
    /**
     * Returns an `Attachment` object with the given `id`.
     */
    downloadRetrieve(id: string, requestOptions?: Attachments.RequestOptions): Promise<stream.Readable>;
    /**
     * Returns metadata for `TicketingAttachment` POSTs.
     */
    metaPostRetrieve(requestOptions?: Attachments.RequestOptions): Promise<Merge.ticketing.MetaResponse>;
    protected _getAuthorizationHeader(): Promise<string>;
}
