import type * as stream from "stream";
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
import * as core from "../../../../../../core";
import type * as Merge from "../../../../../index";
export declare namespace FilesClient {
    type Options = BaseClientOptions;
    interface RequestOptions extends BaseRequestOptions {
    }
}
export declare class FilesClient {
    protected readonly _options: NormalizedClientOptionsWithAuth<FilesClient.Options>;
    constructor(options: FilesClient.Options);
    /**
     * Returns a list of `File` objects.
     *
     * @param {Merge.filestorage.FilesListRequest} request
     * @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.filestorage.files.list({
     *         createdAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         createdBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
     *         driveId: "drive_id",
     *         folderId: "folder_id",
     *         includeDeletedData: true,
     *         includeRemoteData: true,
     *         includeShellData: true,
     *         mimeType: "mime_type",
     *         modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         name: "name",
     *         orderBy: "-created_at",
     *         pageSize: 1,
     *         remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"),
     *         remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"),
     *         remoteId: "remote_id"
     *     })
     */
    list(request?: Merge.filestorage.FilesListRequest, requestOptions?: FilesClient.RequestOptions): Promise<core.Page<Merge.filestorage.File_, Merge.filestorage.PaginatedFileList>>;
    /**
     * Creates a `File` object with the given values.
     *
     * @param {Merge.filestorage.FileStorageFileEndpointRequest} request
     * @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.filestorage.files.create({
     *         isDebugMode: true,
     *         runAsync: true,
     *         model: {}
     *     })
     */
    create(request: Merge.filestorage.FileStorageFileEndpointRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Merge.filestorage.FileStorageFileResponse>;
    private __create;
    /**
     * Returns a `File` object with the given `id`.
     *
     * @param {string} id
     * @param {Merge.filestorage.FilesRetrieveRequest} request
     * @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.filestorage.files.retrieve("id", {
     *         includeRemoteData: true,
     *         includeShellData: true
     *     })
     */
    retrieve(id: string, request?: Merge.filestorage.FilesRetrieveRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Merge.filestorage.File_>;
    private __retrieve;
    /**
     * Returns the `File` content with the given `id` as a stream of bytes.
     */
    downloadRetrieve(id: string, request?: Merge.filestorage.FilesDownloadRetrieveRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<stream.Readable>;
    private __downloadRetrieve;
    /**
     * Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our <a href='https://help.merge.dev/articles/10644317' target='_blank'>direct file download help center article</a>.
     *
     * @param {string} id
     * @param {Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest} request
     * @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.filestorage.files.downloadRequestMetaRetrieve("id", {
     *         mimeType: "mime_type"
     *     })
     */
    downloadRequestMetaRetrieve(id: string, request?: Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Merge.filestorage.DownloadRequestMeta>;
    private __downloadRequestMetaRetrieve;
    /**
     * Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party.
     *
     * @param {Merge.filestorage.FilesDownloadRequestMetaListRequest} request
     * @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.filestorage.files.downloadRequestMetaList({
     *         createdAfter: "created_after",
     *         createdBefore: "created_before",
     *         cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
     *         includeDeletedData: true,
     *         mimeTypes: "mime_types",
     *         modifiedAfter: "modified_after",
     *         modifiedBefore: "modified_before",
     *         orderBy: "-created_at",
     *         pageSize: 1
     *     })
     */
    downloadRequestMetaList(request?: Merge.filestorage.FilesDownloadRequestMetaListRequest, requestOptions?: FilesClient.RequestOptions): Promise<core.Page<Merge.filestorage.DownloadRequestMeta, Merge.filestorage.PaginatedDownloadRequestMetaList>>;
    /**
     * Returns metadata for `FileStorageFile` POSTs.
     *
     * @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
     *
     * @example
     *     await client.filestorage.files.metaPostRetrieve()
     */
    metaPostRetrieve(requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Merge.filestorage.MetaResponse>;
    private __metaPostRetrieve;
}
