type AppState = | { type: 'CameraPicker' } | { type: 'Status'; message: string } | { type: 'Config'; config: import('web-gphoto2').Config; capturePreview: (() => Promise) | undefined; triggerCapture: (() => Promise) | undefined; };