import type { Uint8ArrayList } from "uint8arraylist"; import type { Codec } from "protons-runtime"; export interface Index { digest?: Uint8Array; receivedTime?: bigint; senderTime?: bigint; pubsubTopic?: string; } export declare namespace Index { const codec: () => Codec; const encode: (obj: Index) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => Index; } export interface PagingInfo { pageSize?: bigint; cursor?: Index; direction?: PagingInfo.Direction; } export declare namespace PagingInfo { enum Direction { DIRECTION_BACKWARD_UNSPECIFIED = "DIRECTION_BACKWARD_UNSPECIFIED", DIRECTION_FORWARD = "DIRECTION_FORWARD" } namespace Direction { const codec: () => Codec; } const codec: () => Codec; const encode: (obj: PagingInfo) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => PagingInfo; } export interface ContentFilter { contentTopic?: string; } export declare namespace ContentFilter { const codec: () => Codec; const encode: (obj: ContentFilter) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => ContentFilter; } export interface HistoryQuery { pubSubTopic?: string; contentFilters: ContentFilter[]; pagingInfo?: PagingInfo; startTime?: bigint; endTime?: bigint; } export declare namespace HistoryQuery { const codec: () => Codec; const encode: (obj: HistoryQuery) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => HistoryQuery; } export interface HistoryResponse { messages: WakuMessage[]; pagingInfo?: PagingInfo; error?: HistoryResponse.HistoryError; } export declare namespace HistoryResponse { enum HistoryError { ERROR_NONE_UNSPECIFIED = "ERROR_NONE_UNSPECIFIED", ERROR_INVALID_CURSOR = "ERROR_INVALID_CURSOR" } namespace HistoryError { const codec: () => Codec; } const codec: () => Codec; const encode: (obj: HistoryResponse) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => HistoryResponse; } export interface HistoryRPC { requestId?: string; query?: HistoryQuery; response?: HistoryResponse; } export declare namespace HistoryRPC { const codec: () => Codec; const encode: (obj: HistoryRPC) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => HistoryRPC; } export interface RateLimitProof { proof: Uint8Array; merkleRoot: Uint8Array; epoch: Uint8Array; shareX: Uint8Array; shareY: Uint8Array; nullifier: Uint8Array; rlnIdentifier: Uint8Array; } export declare namespace RateLimitProof { const codec: () => Codec; const encode: (obj: RateLimitProof) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => RateLimitProof; } export interface WakuMessage { payload?: Uint8Array; contentTopic?: string; version?: number; timestampDeprecated?: number; timestamp?: bigint; rateLimitProof?: RateLimitProof; } export declare namespace WakuMessage { const codec: () => Codec; const encode: (obj: WakuMessage) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => WakuMessage; }