declare interface TextMessage { serialize(): Uint8Array; }