import { IdentityService } from '../identity/identity.service'; import { RegistryService } from '../registry/registry.service'; import { layr8 } from '@layr8/proto'; import { IMessageType } from '@protobuf-ts/runtime'; import { IClientService } from '@layr8/plugin-sdk'; export declare class ClientService implements IClientService { private readonly identityService; private readonly registryClientService; constructor(identityService: IdentityService, registryClientService: RegistryService); /** * Sends a generic protocol-buffer message to a remote twin. * @param toDIDs[] The list of recipients. * @param payloadType The type of message to send. eg. layr8.examples.v1.Ping * @param payload The binary-encoded message to send. eg. layr8.examples.v1.Ping.toBinary(ping) * @returns A promise that resolves to void. * @throws An error if the message could not be sent. */ send(toDIDs: layr8.identity.v1.DID[], payloadType: IMessageType, payload: Uint8Array): Promise; private sendOne; }