import type { EditableArtifactSession } from "@opengeni/sdk/editable-artifacts"; /** Host-authenticated export of the saved native head as an Office file. */ export type EditableArtifactDownload = (signal: AbortSignal) => Promise; export type EditableArtifactDownloadFormat = "xlsx" | "docx" | "pptx"; /** * Download action shared by every editable modality. It waits for live sync * with no pending or still-submitting edits, so the export is the latest head. */ export declare function EditableArtifactDownloadButton({ session, title, download, format, }: { session: EditableArtifactSession; title: string; download: EditableArtifactDownload; format: EditableArtifactDownloadFormat; }): import("react").JSX.Element; /** Safe local file name: the artifact title with exactly one matching extension. */ export declare function downloadFileName(title: string, format: EditableArtifactDownloadFormat, fallback: string): string;