import type { Body, ContactEquation } from 'p2-es'; import type { IncomingWorkerMessage } from '../setup'; export declare type WithUUID = C & { uuid?: string; }; export interface CannonWorkerGlobalScope extends ServiceWorkerGlobalScope { postMessage(message: IncomingWorkerMessage['data'], transfer: Transferable[]): void; postMessage(message: IncomingWorkerMessage['data'], options?: StructuredSerializeOptions): void; } export interface CannonCollideEvent { bodyA: WithUUID; bodyB: WithUUID; contactEquation: any; body: WithUUID; contact: ContactEquation; target: WithUUID; type: 'collide'; }