/// import { type Readable } from 'stream'; import FormData from 'form-data'; /** * @class SaveFileRequest - Represents a request to save a file. */ export declare class SaveFileRequest { /** * @property {number} recordId - The id of the record that the file will be saved to. */ recordId: number; /** * @property {number} fieldId - The id of the field that the file will be saved to. */ fieldId: number; /** * @property {string} notes - The notes for the file. */ notes: string; /** * @property {Date} modifiedDate - The modified date for the file. */ modifiedDate: Date; /** * @property {string} fileName - The name of the file. */ fileName: string; /** * @property {string} contentType - The content type of the file. */ contentType: string; /** * @property {Readable} fileStream - The file stream. */ fileStream: Readable; /** * @constructor - Creates a new SaveFileRequest. * @param {number} recordId - The id of the record that the file will be saved to. * @param {number} fieldId - The id of the field that the file will be saved to. * @param {string} notes - The notes for the file. * @param {Date} modifiedDate - The modified date for the file. * @param {string} fileName - The name of the file. * @param {string} contentType - The content type of the file. * @param {Readable} fileStream - The file stream. * @returns {SaveFileRequest} - A new SaveFileRequest. */ constructor(recordId: number, fieldId: number, notes: string, modifiedDate: Date, fileName: string, contentType: string, fileStream: Readable); /** * @method AsFormData - Converts the SaveFileRequest to a FormData object. * @returns {FormData} - The SaveFileRequest as a FormData object. */ asFormData(): FormData; }