import { SynologyApiResponse } from "../../types/index.js"; export type SharingLink = { id: string; date_available?: string; date_expired?: string; has_password?: boolean; isFolder?: boolean; link_owner?: string; name?: string; path?: string; url?: string; qrcode?: string; }; /** * Get information of a sharing link by the sharing link ID. */ export declare function getSharingInfo(params: { id: string; }): Promise>; /** * Get Sharing List * */ export type GetSharingListParams = { limit?: number; offset?: number; sort_by?: string; sort_direction?: "ASC" | "DESC"; force_clean?: boolean; }; export type GetSharingListResponse = SynologyApiResponse<{ offset: number; total: number; links: Array; }>; export declare function getSharingList(params?: GetSharingListParams): Promise; /** * Generate one or more sharing link(s) by file/folder path(s) */ export type CreateSharingLinkParams = { path: string | string[]; password?: string; date_expired?: string; date_available?: string; }; export type CreateSharingLinkResponse = SynologyApiResponse<{ links: Array; }>; export declare function createSharingLink(params: CreateSharingLinkParams): Promise; /** * Delete one or more sharing links. */ export type DeleteSharingLinkParams = { id: string | string[]; }; export declare function deleteSharingLink(params: DeleteSharingLinkParams): Promise>; /** * Remove all expired and broken sharing links. */ export declare function clearInvalidSharingLink(): Promise>; /** * Edit sharing link(s) * */ export type EditSharingLinkParams = { id: string | string[]; password?: string; date_expired?: string; date_available?: string; }; export declare function editSharingLink(params: EditSharingLinkParams): Promise>;