/** * WorkflowContext * * Provides sync/backup/download workflow state and all workflow dialog * handlers to components via React Context. * * @since v2.10.0 */ import { type ReactNode } from 'react'; import type { ServerJarType } from '../../../core/server-jar/index.js'; import type { BackupProgress } from '../../../workflows/backup.js'; import type { DownloadProgress as PluginDownloadProgress } from '../../../workflows/download.js'; import type { ServerDownloadProgress } from '../../../workflows/server-download.js'; import type { SyncProgress } from '../../../workflows/sync.js'; import type { BatchAction } from '../../components/BatchActionMenu.js'; export interface WorkflowContextValue { workflowType: 'sync' | 'backup' | 'download' | 'migrate' | null; showConfirmDialog: boolean; downloadStep: 'config-prompt' | 'type' | 'version' | 'destination' | 'progress'; selectedServerType: ServerJarType | null; syncLoading: boolean; syncProgress: SyncProgress | null; backupLoading: boolean; backupProgress: BackupProgress | null; downloadLoading: boolean; downloadProgress: ServerDownloadProgress | null; availableVersions: string[]; loadingVersions: boolean; batchDownloadLoading: boolean; batchDownloadProgress: PluginDownloadProgress | null; handleUseConfigValues: () => void; handleCustomizeDownload: () => void; handleCancelWorkflow: () => void; handleDestinationSelect: (destination: string) => void; handleConfirmWorkflow: () => void; handleCancelSyncProgress: () => void; handleServerTypeSelect: (option: { id: string; }) => void; handleVersionSelect: (option: { id: string; }) => void; handleBatchAction: (action: BatchAction) => void; handleCancelBatchMenu: () => void; handleQuickSync: () => void; handleQuickMigrate: () => void; } export declare function WorkflowProvider({ children, value, }: { children: ReactNode; value: WorkflowContextValue; }): React.ReactElement; export declare function useWorkflowContext(): WorkflowContextValue; //# sourceMappingURL=workflow-context.d.ts.map