| 250 | } |
| 251 | |
| 252 | export interface ExportActions { |
| 253 | // Source actions |
| 254 | setSourceType: (type: SourceType) => void |
| 255 | setSourceData: (data: SourceData) => void |
| 256 | |
| 257 | // Format actions |
| 258 | setFormatType: (type: FormatType) => void |
| 259 | updateExportOptions: (options: Partial<ExportOptions>) => void |
| 260 | |
| 261 | // Preview actions |
| 262 | updatePreviewOptions: (options: Partial<PreviewOptions>) => void |
| 263 | generatePreview: () => Promise<void> |
| 264 | setPreviewContainerElement: (element: HTMLDivElement | null) => void |
| 265 | |
| 266 | // Edit actions |
| 267 | setEditedContent: (content: string | Blob) => void |
| 268 | enterEditMode: () => void |
| 269 | exitEditMode: () => void |
| 270 | confirmOverwrite: () => void |
| 271 | |
| 272 | // Export actions |
| 273 | doExport: () => Promise<void> |
| 274 | copyToClipboard: () => Promise<void> |
| 275 | downloadImage: () => Promise<void> |
| 276 | copyImageToClipboard: () => Promise<void> |
| 277 | |
| 278 | // Reset |
| 279 | reset: () => void |
| 280 | } |
| 281 | |
| 282 | export type ExportStore = ExportState & ExportActions |
| 283 |
nothing calls this directly
no outgoing calls
no test coverage detected