import React from 'react';
interface DocumentViewerProps {
    /** Public CDN URL of the doc. Must be reachable from Google's servers. */
    url: string;
    /** Optional display filename; used for the error fallback only. */
    fileName?: string;
}
/**
 * Inline preview for office documents (DOC / DOCX / XLS / XLSX / PPT /
 * PPTX / TXT / RTF / CSV) and other non-PDF formats supported by
 * Google's free gview rendering service.
 *
 * Strategy: embed `https://docs.google.com/gview?url=<encoded>&embedded=true`
 * inside a WebView. Google fetches the doc from its public URL and
 * renders it to a viewable iframe — no client-side dependency on
 * native office libraries, no extra peer dep. Works for any backend
 * whose file URLs are publicly reachable (which Ethora's `/files/`
 * already are — they're CDN URLs returned in `item.location`).
 *
 * Limitations (documented for the integrator):
 *   - Requires public URL — won't work for auth-gated downloads.
 *   - First load can take 2-5s on slow networks.
 *   - Read-only — no editing, no print/share buttons.
 *
 * For PDFs use the existing PdfViewer (downloads then renders locally).
 */
declare const DocumentViewer: React.FC<DocumentViewerProps>;
export default DocumentViewer;
//# sourceMappingURL=DocumentViewer.d.ts.map