/**
 * 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 Files {
    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 Files {
    protected readonly _options: Files.Options;
    constructor(_options: Files.Options);
    /**
     * Returns a list of `File` objects.
     */
    list(request?: Merge.filestorage.FilesListRequest, requestOptions?: Files.RequestOptions): Promise<Merge.filestorage.PaginatedFileList>;
    /**
     * Creates a `File` object with the given values.
     */
    create(request: Merge.filestorage.FileStorageFileEndpointRequest, requestOptions?: Files.RequestOptions): Promise<Merge.filestorage.FileStorageFileResponse>;
    /**
     * Returns a `File` object with the given `id`.
     */
    retrieve(id: string, request?: Merge.filestorage.FilesRetrieveRequest, requestOptions?: Files.RequestOptions): Promise<Merge.filestorage.File_>;
    /**
     * Returns a `File` object with the given `id`.
     */
    downloadRetrieve(id: string, requestOptions?: Files.RequestOptions): Promise<stream.Readable>;
    /**
     * Returns metadata for `FileStorageFile` POSTs.
     */
    metaPostRetrieve(requestOptions?: Files.RequestOptions): Promise<Merge.filestorage.MetaResponse>;
    protected _getAuthorizationHeader(): Promise<string>;
}
