/** * Type definitions for call-media components. * * Types are imported directly from the SDK to stay in sync. */ import type { Call, CallParticipant, CallSelfParticipant, DeviceController, LayoutLayer } from '@signalwire/js'; export type { Call, CallParticipant, CallSelfParticipant, DeviceController, LayoutLayer }; export type Participant = CallParticipant; /** * Helper to safely get self ID from a Call. * Call.self is typed as CallSelfParticipant | null. */ export declare function getSelfId(call: Call | undefined): string | undefined; /** * Type-safe cast for participants array. * The SDK's Call.participants is typed as CallParticipant[], so this * provides a semantic helper for web-components that receive unknown[]. */ export declare function castParticipants(participants: unknown[]): Participant[]; //# sourceMappingURL=index.d.ts.map