export type LogLevel = "info" | "warn" | "error";
export interface McpNodeLogEntry {
    level: LogLevel;
    message: string;
    timestamp: string;
}
export type McpNodeLogSink = (entry: McpNodeLogEntry) => void;
export declare function formatStartupTimestamp(date: Date): string;
export declare function getStartupPathName(startupPath: string | undefined): string;
export declare function sanitizeLogFileNameSegment(segment: string): string;
export declare function buildStartupLogFilePath(options?: {
    homeDir?: string;
    logDir?: string;
    startupPath?: string;
    startupTime?: Date;
}): string;
export declare function initializeStartupLogFile(): string | null;
/**
 * 绑定 MCP Node.js 日志上报通道。
 * 主流程：设置实时 sink -> 回放启动以来的缓冲日志 -> 后续日志实时推送。
 */
export declare function setMcpNodeLogSink(sink: McpNodeLogSink | null): void;
export declare const logger: {
    info: (...args: unknown[]) => void;
    warn: (...args: unknown[]) => void;
    error: (...args: unknown[]) => void;
};
//# sourceMappingURL=logger.d.ts.map