import { type DocumentPreviewAction } from "./types.js"; export * from "./types.js"; export { FileFormatIcon, resolveFileFormat, type FileFormatIconProps, type FileFormat, } from "./fileFormatIcon.js"; export * from "./variants.js"; export type DocumentPreviewProps = { url: string; name: string; mimeType?: string; actions?: DocumentPreviewAction[]; /** Override action handling — return true to indicate handled (skip default). */ onAction?: (action: DocumentPreviewAction) => boolean | void; labels?: Partial>; /** Optional slot shown in the toolbar before the action buttons (e.g. a back link). */ toolbarLeading?: React.ReactNode; /** Fallback messages for unsupported files. */ unsupportedTitle?: string; unsupportedDescription?: string; /** * Builds the embed URL for office documents (docx/xlsx/pptx). Defaults to * Microsoft's public Office Online viewer, which receives the document URL * and requires it to be publicly reachable. Pass `null` to opt out for * privacy-sensitive documents — office files then fall back to the * unsupported state (download/open actions still work). */ officeViewerUrl?: ((fileUrl: string) => string) | null; }; export declare function DocumentPreview({ url, name, mimeType, actions, onAction, labels, toolbarLeading, unsupportedTitle, unsupportedDescription, officeViewerUrl, }: DocumentPreviewProps): import("react").JSX.Element; //# sourceMappingURL=index.d.ts.map