declare global { /** * JavaScript bridge exposed by the Flutter app. * * @remarks * Provided by Flutter via JavascriptChannel or equivalent platform mechanism. */ var WebViewCommunication: { /** * Post a message to Flutter. * @param message - JSON-serialized message string */ postMessage: (message: string) => {}; }; } export type Prettify = { [K in keyof T]: T[K]; } & {}; /** * Response from Flutter for async messages. * * @remarks * Async messages either succeed with a payload or fail with an error message. * Check the `ok` property to determine which case applies. */ export type MessageResponse> = { ok: true; payload: T; } | { ok: false; errorMessage: string; }; /** * Message to send to Flutter. * * @remarks * Messages must contain an `action` string. Optional `payload` contains action-specific data. */ export type Message = { /** Action identifier string (e.g., "core_status-bar_set-color") */ action: string; /** Optional data payload for the action */ payload?: any; }; export type PackageInfo = { appName: string; packageName: string; version: string; buildNumber: string; }; export type DeviceInfo = { android?: { /** The name of the device. https://developer.android.com/reference/android/provider/Settings.Global#DEVICE_NAME */ name: string; /** The name of the industrial design. https://developer.android.com/reference/android/os/Build#DEVICE */ device: string; /** The consumer-visible brand with which the product/hardware will be associated, if any. https://developer.android.com/reference/android/os/Build#BRAND */ brand: string; /** The manufacturer of the product/hardware. https://developer.android.com/reference/android/os/Build#MANUFACTURER*/ manufacturer: string; /** The end-user-visible name for the end product. https://developer.android.com/reference/android/os/Build#MODEL */ model: string; /** * The user-visible SDK version of the framework. * * Possible values are defined in: https://developer.android.com/reference/android/os/Build.VERSION_CODES.html */ sdkInt: number; /** The user-visible version string. */ release: string; }; ios?: { /** * Device name. * * On iOS < 16 returns user-assigned device name On iOS >= 16 returns a generic device name if project has no entitlement to get user-assigned device name. https://developer.apple.com/documentation/uikit/uidevice/1620015-name */ name: string; /** Device model according to OS https://developer.apple.com/documentation/uikit/uidevice/1620044-model */ model: string; /** Commercial or user-known model name Examples: iPhone 16 Pro, iPad Pro 11-Inch 3 */ modelName: string; /** The name of the current operating system. https://developer.apple.com/documentation/uikit/uidevice/1620054-systemname */ systemName: string; /** The current operating system version. https://developer.apple.com/documentation/uikit/uidevice/1620043-systemversion */ systemVersion: string; }; }; //# sourceMappingURL=types.d.ts.map