import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { Consumer } from "../consumer/consumer"; import { Producer } from "../producer/producer"; import { ProducerSpatialLayerRequest } from "../producer/producer_spatial_layer_request"; import { TransportConnectionTimeout } from "../transport/transport_connection_timeout"; export declare const protobufPackage = "channel_message"; export declare enum MediaEventType { MEDIA_EVENT_TYPE_UNSPECIFIED = 0, MEDIA_EVENT_TYPE_TRANSPORT_CONNECTION_TIMEOUT = 1, MEDIA_EVENT_TYPE_PRODUCER_CREATED = 2, MEDIA_EVENT_TYPE_PRODUCER_PAUSED = 3, MEDIA_EVENT_TYPE_PRODUCER_RESUMED = 4, MEDIA_EVENT_TYPE_PRODUCER_CLOSED = 5, MEDIA_EVENT_TYPE_PRODUCER_FORCIBLY_CLOSED = 6, MEDIA_EVENT_TYPE_PRODUCER_MAX_SPATIAL_LAYER_REQUESTED = 7, MEDIA_EVENT_TYPE_PRODUCER_MAX_SPATIAL_LAYER_CHANGED = 8, MEDIA_EVENT_TYPE_CONSUMER_CLOSED = 9, MEDIA_EVENT_TYPE_CONSUMER_PAUSED = 10, MEDIA_EVENT_TYPE_CONSUMER_RESUMED = 11, MEDIA_EVENT_TYPE_CONSUMER_PREFERRED_LAYERS_CHANGED = 12, UNRECOGNIZED = -1 } export declare function mediaEventTypeFromJSON(object: any): MediaEventType; export declare function mediaEventTypeToJSON(object: MediaEventType): string; export interface MediaEvent { eventType: MediaEventType; producer?: Producer | undefined; consumer?: Consumer | undefined; producerSpatialLayerRequest?: ProducerSpatialLayerRequest | undefined; transportConnectionTimeout?: TransportConnectionTimeout | undefined; } export declare const MediaEvent: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } export {};