/// interface ContextBridgeApi { getAppInfo: () => Promise; getKey: (options: { licenseDataPath: string; }) => Promise; } type GetAppInfoMessageKey = "get-app-info"; type GetLicenseMessageKey = "get-license-key"; interface GenericResponse { type: T; senderId: string; payload: T extends GetLicenseMessageKey ? { licenseKey: string; } : T extends GetAppInfoMessageKey ? { isPackaged: boolean; appId: string; appName: string; version: string; } : never; } type GetLicenseKeyResponse = GenericResponse; type GetAppInfoResponse = GenericResponse; export type { ContextBridgeApi as C, GetAppInfoResponse as G, GetLicenseKeyResponse as a };