/** * Advanced logging configuration for browser-use TypeScript * * This module provides comprehensive logging capabilities including: * - Custom log levels (RESULT level) * - Advanced log formatting and filtering * - Third-party logger management * - Cross-platform compatibility */ import * as winston from 'winston'; /** * Simple FIFO Handler for named pipe logging (Unix-like systems) */ export declare class FIFOHandler { private fifoPath; private fd; constructor(fifoPath: string); write(message: string): void; close(): void; } /** * Setup logging configuration for browser-use * * @param stream - Output stream (not used in winston, but kept for compatibility) * @param logLevel - Override log level * @param forceSetup - Force reconfiguration even if already set up */ export declare function setupLogging(stream?: NodeJS.WritableStream, logLevel?: string, forceSetup?: boolean): winston.Logger; /** * Get or create a logger with the given name */ export declare function getLogger(name: string): winston.Logger; /** * Setup named pipes for log streaming * * @param sessionId - Session ID for unique pipe naming * @param baseDir - Base directory for pipes (defaults to temp directory) */ export declare function setupLogPipes(sessionId: string, baseDir?: string): void; export declare const logger: winston.Logger; export type Logger = winston.Logger; declare module 'winston' { interface Logger { result(message: string, meta?: any): winston.Logger; fatal(message: string, meta?: any): winston.Logger; critical(message: string, meta?: any): winston.Logger; } } //# sourceMappingURL=index.d.ts.map