import type { WorkOfficeCollaborationPresence } from './internal/collaboration/office-collaboration-presence'; import type { DocumentEditorProps as InternalDocumentEditorProps } from './internal/features/work/editors/document-editor'; import type { MarkdownEditorProps as InternalMarkdownEditorProps } from './internal/features/work/editors/markdown-editor'; import type { PdfViewerProps as InternalPdfViewerProps } from './internal/features/work/editors/pdf-viewer'; export { PDF_EVIDENCE_COORDINATE_BASIS, type PdfEvidenceBounds, type PdfEvidenceOverlay, type PdfEvidencePage, type PdfEvidenceRegion, type PdfEvidenceRegionLocation, } from './internal/features/work/editors/pdf-evidence-contract'; export type { PdfPageOrganizationExport } from './internal/features/work/editors/use-pdf-page-organization'; import type { PresentationEditorProps as InternalPresentationEditorProps } from './internal/features/work/editors/presentation-editor'; import type { SpreadsheetEditorProps as InternalSpreadsheetEditorProps } from './internal/features/work/editors/spreadsheet-editor'; import type { WorkOfficeFileAction } from './internal/features/work/editors/work-office-chrome'; import { type OfficeSurfaceProps, type OfficeTheme } from './office-surface'; export type OfficeEditorKind = 'document' | 'markdown' | 'spreadsheet' | 'presentation' | 'pdf'; export interface OfficeEditorPreloadOptions { /** Overrides the packaged PDFium asset when preloading the PDF runtime. */ pdfWasmUrl?: string; /** Also fetches PDFium WebAssembly. Disabled unless explicitly enabled. */ preloadRuntimeAssets?: boolean; } /** * Starts loading one editor without mounting it. * * Call this from an intent signal such as hover or keyboard focus to keep the * initial application bundle small without adding latency to editor opening. */ export declare function preloadOfficeEditor(kind: OfficeEditorKind, options?: OfficeEditorPreloadOptions): Promise; export declare const defaultPdfiumWasmUrl: string; export declare const defaultOfficeKernelWasmUrl: string; export declare const defaultDocumentLayoutFontUrl: string; export declare const defaultDocumentLatinLayoutFontUrl: string; export declare const defaultDocumentArabicLayoutFontUrl: string; export declare const defaultDocumentHebrewLayoutFontUrl: string; export interface DocumentLayoutFont { id: string; family: string; url: string; weight?: number; style?: 'normal' | 'italic'; } export declare const defaultDocumentLayoutFonts: readonly DocumentLayoutFont[]; export type { OfficeSurfaceProps, OfficeTheme, WorkOfficeFileAction as OfficeFileAction, }; interface OfficeCollaborationSurfaceProps { /** Host-owned Awareness projection paired with the editor collaboration session. */ presence?: WorkOfficeCollaborationPresence; } export interface DocumentEditorProps extends Omit, OfficeSurfaceProps, OfficeCollaborationSurfaceProps { preview?: boolean; defaultRibbonCollapsed?: boolean; layoutFonts?: readonly DocumentLayoutFont[]; } export declare function DocumentEditor({ className, defaultRibbonCollapsed, kernelWasmUrl, layoutFonts, presence, preview, style, theme, ...editorProps }: DocumentEditorProps): import("react").JSX.Element; export interface MarkdownEditorProps extends Omit, OfficeSurfaceProps, OfficeCollaborationSurfaceProps { preview?: boolean; } export declare function MarkdownEditor({ className, presence, preview, style, theme, ...editorProps }: MarkdownEditorProps): import("react").JSX.Element; export interface SpreadsheetEditorProps extends Omit, OfficeSurfaceProps, OfficeCollaborationSurfaceProps { preview?: boolean; } export declare function SpreadsheetEditor({ className, kernelWasmUrl, presence, preview, style, theme, ...editorProps }: SpreadsheetEditorProps): import("react").JSX.Element; export interface PresentationEditorProps extends Omit, OfficeSurfaceProps, OfficeCollaborationSurfaceProps { preview?: boolean; } export declare function PresentationEditor({ className, kernelWasmUrl, presence, preview, style, theme, ...editorProps }: PresentationEditorProps): import("react").JSX.Element; export interface PdfViewerProps extends InternalPdfViewerProps, OfficeSurfaceProps, OfficeCollaborationSurfaceProps { } export declare function PdfViewer({ className, presence, style, theme, wasmUrl, ...viewerProps }: PdfViewerProps): import("react").JSX.Element;