UNPKG

@waku/core

Version:

TypeScript implementation of the Waku v2 protocol

12 lines (11 loc) 469 B
import { proto_lightpush as proto } from "@waku/proto"; import type { Uint8ArrayList } from "uint8arraylist"; export declare class PushRpc { proto: proto.PushRpc; constructor(proto: proto.PushRpc); static createRequest(message: proto.WakuMessage, pubsubTopic: string): PushRpc; static decode(bytes: Uint8ArrayList): PushRpc; encode(): Uint8Array; get query(): proto.PushRequest | undefined; get response(): proto.PushResponse | undefined; }