import { default as React } from 'react'; import { FileNode } from '../types'; export interface SetupWizardProduct { /** i18n key for the product name. */ nameKey: string; /** XPIcon name. */ icon?: string; publisher?: string; version?: string; } export type SetupWizardPageType = 'welcome' | 'license' | 'path' | 'progress' | 'finish'; export interface SetupWizardPage { type: SetupWizardPageType; /** For 'license' page: i18n key for license text. */ licenseKey?: string; /** For 'path' page: default install path. */ defaultPath?: string; } export interface SetupWizardInstalls { /** Filesystem nodes to create under the install path. */ files?: Record; /** Start menu entry. */ startMenu?: { nameKey: string; app: string; }; /** Whether to create a desktop shortcut. */ desktopShortcut?: boolean; } export interface SetupWizardOption { id: string; labelKey: string; default: boolean; } export interface SetupWizardSpec { product: SetupWizardProduct; pages: (SetupWizardPageType | SetupWizardPage)[]; installs: SetupWizardInstalls; options?: SetupWizardOption[]; } interface SetupWizardProps { spec?: SetupWizardSpec; windowId?: string; } declare const SetupWizard: React.FC; export default SetupWizard;