import type { IncomingMessage, ServerResponse } from 'node:http'; import type { RpcUsageCumulativeSnapshot } from '@origintrail-official/dkg-chain'; export declare const RPC_USAGE_SNAPSHOT_PATH = "/api/diagnostics/rpc-usage"; export declare function isLoopbackAddress(address: string | undefined): boolean; /** * Serve the already-authenticated, loopback-only accounting snapshot. Keeping * the route outside `/api/status` prevents public health polling from exposing * diagnostics or changing the status contract. */ export declare function handleRpcUsageSnapshotRequest(input: { readonly req: IncomingMessage; readonly res: ServerResponse; readonly url: URL; readonly authenticated: boolean; readonly snapshot: () => RpcUsageCumulativeSnapshot; }): boolean; //# sourceMappingURL=rpc-usage-snapshot-route.d.ts.map