//#region src/electron/common.d.ts 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; requestId: 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; //#endregion export { GetAppInfoResponse as n, GetLicenseKeyResponse as r, ContextBridgeApi as t };