import type express from 'express'; import type { Payload } from "./index.js"; export type Method = "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head"; export interface ClientInterface { sendPayload(payload: Payload): Promise; registerRoute(method: Method, route: string, fn: (req: express.Request, res: express.Response, next?: express.NextFunction) => any): any; registerGuide(html: string): number; } export interface iReceiverConfig { enabled: boolean; } export interface iReceiverStatic { new (config: T, web: ClientInterface): iReceiver; getConfig(cfg?: Partial): T; } export declare abstract class iReceiver { protected config: T; private web; constructor(config: T, web: ClientInterface); request: (url: string) => Promise; registerRoute: (method: Method, route: string, handler: (req: express.Request, res: express.Response, next?: express.NextFunction) => any) => void; registerGuide: (html: string) => number; start: () => void; close: () => void; }