import { TypedServer, type THealthCheckFunction } from '../classes.typedserver.js';
export interface ILoleServiceServerConstructorOptions {
    addCustomRoutes?: (typedserver: TypedServer) => Promise<any>;
    serviceName: string;
    serviceVersion: string;
    serviceDomain: string;
    port?: number;
}
export declare class UtilityServiceServer {
    options: ILoleServiceServerConstructorOptions;
    typedServer: TypedServer;
    private pendingHealthChecks;
    constructor(optionsArg: ILoleServiceServerConstructorOptions);
    /**
     * Register a named health check served by the built-in health endpoint.
     * Can be called before or after start().
     */
    registerHealthCheck(nameArg: string, checkArg: THealthCheckFunction): void;
    start(): Promise<void>;
    stop(): Promise<void>;
}
