/** * UpdateContext * * Provides update check results, selection state, auto-update state, * and update action handlers to components via React Context. * * @since v2.10.0 */ import { type ReactNode } from 'react'; import type { PluginUpdateInfo } from '../../../core/types/index.js'; import type { AutoUpdateProgress, AutoUpdateSummary } from '../../../workflows/auto-update.js'; import type { ManualUpdateInfo, UpdateCheckProgress } from '../../../workflows/update-check.js'; import type { AutoUpdateState } from '../../views/AutoUpdateView.js'; export interface UpdateContextValue { updates: PluginUpdateInfo[]; upToDate: PluginUpdateInfo[]; updateErrors: Array<{ pluginName: string; error: string; }>; updateSkipped: Array<{ pluginName: string; reason: string; }>; manualUpdates: ManualUpdateInfo[]; checkProgress: UpdateCheckProgress | null; updatesLoading: boolean; lastChecked: Date | null; selectedUpdates: Set; failedDownloads: Set; toggleSelect: (pluginName: string) => void; selectAll: () => void; deselectAll: () => void; clearUpdates: () => void; downloadableCount: number; manualActionCount: number; autoUpdateState: AutoUpdateState; setAutoUpdateState: (v: AutoUpdateState) => void; autoUpdateProgress: AutoUpdateProgress | null; setAutoUpdateProgress: (v: AutoUpdateProgress | null) => void; autoUpdateSummary: AutoUpdateSummary | null; setAutoUpdateSummary: (v: AutoUpdateSummary | null) => void; handleDownloadUpdates: (updates: PluginUpdateInfo[]) => void; handleCheckUpdates: () => void; } export declare function UpdateProvider({ children, value }: { children: ReactNode; value: UpdateContextValue; }): React.ReactElement; export declare function useUpdateContext(): UpdateContextValue; //# sourceMappingURL=update-context.d.ts.map