/** * SetupContext * * Provides first-run setup wizard state and JAR migration state. Both are * transient, migration-time concerns. * * @since v2.11.0 */ import { type ReactNode } from 'react'; import type { ServerJarInfo } from '../../../core/scanner.js'; import type { Plugin } from '../../../core/types/index.js'; import type { SetupConfig, SetupWizardState } from '../../components/wizard/wizard-types.js'; export interface SetupContextValue { handleSetupComplete: (setupConfig: SetupConfig) => void; handleSetupCancel: () => void; isFirstRun: boolean; scanPluginsForSetup: (path: string) => Promise; setupWizardState: SetupWizardState | null; handleSetupStateChange: (state: SetupWizardState) => void; testJarPath: string | null; testJars: ServerJarInfo[]; prodJarPath: string | null; /** Matches JarMigrationDialog.onConfirm signature */ handleJarMigrationConfirm: (migrateJar: boolean, selectedJarPath?: string) => void; handleJarMigrationCancel: () => void; } export declare function SetupProvider({ children, value }: { children: ReactNode; value: SetupContextValue; }): React.ReactElement; export declare function useSetupContext(): SetupContextValue; //# sourceMappingURL=setup-context.d.ts.map