import { FileLockBody, FileLockData } from '../../interfaces/files.interface'; import { Api, ApiResponse } from '../api'; type Base64Image = string; export type FileAction = 'archived' | 'relevant' | 'public'; export declare class Files { api: Api; constructor(api: Api); exportXls(postData: ReportData | ReportData[]): Promise>; fileAction({ type, hash }: { hash: string; type: string; }, attribute: string, fileHash: string, organization: string, method: 'post' | 'delete', action: FileAction): Promise>; fileLock(elementHash: string, attribute: string, fileHash: string, method: 'post', body: FileLockBody): Promise>; fileLock(elementHash: string, attribute: string, fileHash: string, method: 'delete' | 'get'): Promise>; signPdf(postData: SignPdfParams): Promise>; } interface SignPdfParams { signatureData: Base64Image; elementHash: string; elementType: string; organization: string; resultAttribute: string; sourcePdfUrl?: string; fillFormData?: Record; } interface ReportData { filename: string; data: (string | number)[][]; mergedCells: string[][]; sheetName?: string; styles: { columns?: Record[]; rows?: Record[]; }; } export {};