import { SynologyApiResponse } from "../../types/index.js"; import { FileListItem } from "./List.js"; export type StartSearchParams = { folder_path?: string; filetype?: "file" | "dir" | "all"; recursive?: boolean; pattern?: string; }; export type StartSearchResponse = SynologyApiResponse<{ has_not_index_share: boolean; taskid: string; }>; export declare function startSearch(params: StartSearchParams): Promise; export declare function stopSearch(params: { taskid: string; }): Promise>; export type SearchListParams = { taskid: string; filetype?: "file" | "dir" | "all"; limit?: number; offset?: number; additional?: string[]; sort_by?: "name" | "size" | "user" | "group" | "mtime" | "atime" | "ctime" | "crtime" | "posix" | "type"; sort_direction?: "ASC" | "DESC"; }; export type SearchListResponse = SynologyApiResponse<{ offset: number; total: number; finished: boolean; files: Array; }>; export declare function getSearchList(params: SearchListParams): Promise; /** * Delete search temporary database(s). * @param taskid - Unique ID(s) for the search task which are obtained from start method. */ export declare function cleanSearch(params: { taskid: string; }): Promise>;