import { IEncoder, IMessage } from "./message.js"; import { LightPushSDKResult } from "./protocols.js"; import type { ISendOptions } from "./sender.js"; export type LightPushProtocolOptions = ISendOptions & { /** * The interval in milliseconds to wait before retrying a failed push. * @default 1000 */ retryIntervalMs: number; /** * Number of peers to send message to. * * @default 1 */ numPeersToUse?: number; }; export type ILightPush = { readonly multicodec: string[]; start: () => void; stop: () => void; send: (encoder: IEncoder, message: IMessage, options?: ISendOptions) => Promise; }; export declare enum LightPushStatusCode { SUCCESS = 200, BAD_REQUEST = 400, PAYLOAD_TOO_LARGE = 413, INVALID_MESSAGE = 420, UNSUPPORTED_TOPIC = 421, TOO_MANY_REQUESTS = 429, INTERNAL_ERROR = 500, UNAVAILABLE = 503, NO_RLN_PROOF = 504, NO_PEERS = 505 } export declare const StatusDescriptions: Record;