import { SynologyApiResponse } from "../../types/index.js"; export type RenameParams = { path: string; name: string; additional?: Array<"real_path" | "size" | "owner" | "time" | "perm" | "type">; /** * Optional. A unique ID for the search * task which is obtained from start * method. It is used to update the * renamed file in the search result. */ search_taskid?: string; }; export type RenameResponse = SynologyApiResponse<{ files: Array<{ isdir: boolean; name: string; path: string; additional?: { type: string; size: number; time: { atime: number; mtime: number; ctime: number; btime: number; }; real_path: string; mount_point_type: string; indexed: boolean; description: Record; }; }>; }>; /** * Rename a file/folder. */ export declare function rename(params: RenameParams): Promise;