export declare const PIX_LOG_MAX_LINES = 1000; export type PixLogLevel = "debug" | "info" | "warn" | "error"; export type PixLogDetails = Record; export type PixFileLoggerOptions = { logPath?: string; maxLines?: number; }; export declare function getPixLogPath(homeDir?: string): string; export declare class PixFileLogger { readonly logPath: string; private readonly maxLines; private pending; constructor(options?: PixFileLoggerOptions); log(level: PixLogLevel, event: string, details?: PixLogDetails): Promise; debug(event: string, details?: PixLogDetails): Promise; info(event: string, details?: PixLogDetails): Promise; warn(event: string, details?: PixLogDetails): Promise; error(event: string, details?: PixLogDetails): Promise; flush(): Promise; private formatLine; private writeLine; } export declare const pixLogger: PixFileLogger; export declare function logPixEvent(level: PixLogLevel, event: string, details?: PixLogDetails): void; export declare function trimLogFile(logPath: string, maxLines?: number): Promise;