import type http from 'node:http'; export declare const OFFICE_EXTENSIONS: Set; export type OnlyOfficeDocumentType = 'word' | 'slide' | 'cell'; export type OnlyOfficeDocumentPreviewConfig = { documentType: OnlyOfficeDocumentType; type: 'embedded'; height: string; width: string; document: { fileType: string; key: string; title: string; url: string; permissions: { comment: boolean; download: boolean; edit: boolean; fillForms: boolean; print: boolean; review: boolean; }; }; editorConfig: { callbackUrl: string; embedded: { autostart: 'document'; embedUrl: string; fullscreenUrl: string; saveUrl: string; shareUrl: string; toolbarDocked: 'bottom'; }; lang: string; mode: 'view'; customization: { autosave: boolean; chat: boolean; comments: boolean; compactHeader: boolean; compactToolbar: boolean; forcesave: boolean; help: boolean; logo: { visible: boolean; url: string; }; layout: { header: { editMode: boolean; save: boolean; user: boolean; users: boolean; }; toolbar: boolean; }; }; }; token?: string; }; export declare function isOfficePreviewPath(filePath: string): boolean; export declare function ensureSpreadsheetPreviewXlsx(agentId: string, relPath: string, sourcePath: string): Promise; export declare function createOnlyOfficeDocumentPreview(relPath: string, sourcePath: string, sourceUrl: string): { documentServerUrl: string; config: OnlyOfficeDocumentPreviewConfig; }; export declare function ensureOfficePreviewPdf(agentId: string, relPath: string, sourcePath: string, sourceUrl: string): Promise; export declare function issuePreviewToken(filePath: string): string; export declare function resolvePreviewToken(token: string): { filePath: string; mimeType: string; } | null; export declare function servePreviewFile(req: http.IncomingMessage, res: http.ServerResponse, file: { filePath: string; mimeType: string; }): void; //# sourceMappingURL=office-preview.d.ts.map