import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import * as FilesAPI from "../files.js"; import { type Response } from "../../_shims/index.js"; export declare class Files extends APIResource { /** * List all files from the session in descending order. */ list(sessionId: string, options?: Core.RequestOptions): Core.APIPromise; /** * Delete a file from a session */ delete(sessionId: string, path_: string, options?: Core.RequestOptions): Core.APIPromise; /** * Delete all files from a session */ deleteAll(sessionId: string, options?: Core.RequestOptions): Core.APIPromise; /** * Download a file from a session */ download(sessionId: string, path_: string, options?: Core.RequestOptions): Core.APIPromise; /** * Download all files from the session as a zip archive. */ downloadArchive(sessionId: string, options?: Core.RequestOptions): Core.APIPromise; /** * Uploads a file to a session via `multipart/form-data` with a `file` field that * accepts either binary data or a URL string to download from, and an optional * `path` field for the file storage path. */ upload(sessionId: string, body: FileUploadParams, options?: Core.RequestOptions): Core.APIPromise; } export interface FileUploadParams { /** * The file to upload (binary) or URL string to download from */ file: Core.Uploadable; /** * Path to the file in the storage system */ path?: string; } export declare namespace Files { export { type FileUploadParams as FileUploadParams }; } //# sourceMappingURL=files.d.ts.map