export interface ServerInfo {
    port: number;
    pid: number;
    startedAt: string;
}
type ConfigDirResolutionOptions = {
    env?: NodeJS.ProcessEnv;
    homedirPath?: string;
};
export declare function resolveServerInfoConfigDir(options?: ConfigDirResolutionOptions): string;
export declare function writeServerInfo(configDir: string, port: number): Promise<void>;
export declare function readServerInfo(configDir: string): Promise<ServerInfo | null>;
export declare function deleteServerInfo(configDir: string): Promise<void>;
export declare function isServerAlive(info: ServerInfo): Promise<boolean>;
export declare function callToolViaHttp(port: number, toolName: string, params: Record<string, unknown>): Promise<unknown>;
export {};
//# sourceMappingURL=server-info.d.ts.map