import { APIResource } from "../resource.js"; import * as Core from "../core.js"; import { type Response } from "../_shims/index.js"; export declare class Files extends APIResource { /** * List all global files for the organization in descending order. */ list(options?: Core.RequestOptions): Core.APIPromise; /** * Delete a file from global storage */ delete(path_: string, options?: Core.RequestOptions): Core.APIPromise; /** * Download a file from global storage */ download(path_: string, options?: Core.RequestOptions): Core.APIPromise; /** * Uploads a file to global storage 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(body: FileUploadParams, options?: Core.RequestOptions): Core.APIPromise; } export interface File { /** * Timestamp when the file was created */ lastModified: string; /** * Path to the file in the storage system */ path: string; /** * Size of the file in bytes */ size: number; } export interface Fileslist { /** * Array of files for the current page */ data: Array; } export declare namespace Fileslist { interface Data { /** * Timestamp when the file was created */ lastModified: string; /** * Path to the file in the storage system */ path: string; /** * Size of the file in bytes */ size: number; } } 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 File as File, type Fileslist as Fileslist, type FileUploadParams as FileUploadParams }; } //# sourceMappingURL=files.d.ts.map