export type STCEventContext<T extends Record<string, any>> = T & {
    meta: {
        roomName?: string;
        roomId?: string | number;
    };
};
export type EventTarget = string | number | undefined;
export interface EventCallback<T = any> {
    (error: Error | null): void;
    (error: Error | null, data: T): void;
}
export type DefaultEvents = {
    [event: string]: any;
};
export type STSEvents = {
    [event: string]: (...args: any[]) => void;
};
export type STCEvents = {
    [event: string]: (...args: any[]) => void;
};
export type CTSEvents = {
    [event: string]: (...args: any[]) => void;
};
export type DisconnectDescription = {
    description: string;
    context?: unknown;
};
//# sourceMappingURL=types.d.ts.map