import { type ApiVersion } from "../types/index.js"; import type { Logger, Metrics } from "../utils/index.js"; import { type FastifyReply, type FastifyRequest } from "fastify"; import type { Registry } from "prom-client"; import type { IRpcEndpoint } from "./rpcHandler.js"; declare module "fastify" { interface FastifyRequest { rpcMethod: string; } interface FastifyReply { rpcStatus: "failed" | "success"; } } export declare class Server { private fastify; private rpcEndpoint; private port; private registry; private metrics; private apiVersions; private defaultApiVersion; constructor(rpcEndpoint: IRpcEndpoint, apiVersions: ApiVersion[], defaultApiVersion: ApiVersion, port: number, requestTimeout: number | undefined, websocketMaxPayloadSize: number, websocketEnabled: boolean, logger: Logger, registry: Registry, metrics: Metrics); start(): void; stop(): Promise; healthCheck(_request: FastifyRequest, reply: FastifyReply): Promise; private rpcSocket; private rpcHttp; private rpc; serveMetrics(_request: FastifyRequest, reply: FastifyReply): Promise; } //# sourceMappingURL=server.d.ts.map