/** * Get the path to the daemon log file. */ export declare function getLogFilePath(baseDir?: string): string; /** * Read the last N lines from a log file. * Returns an empty array if the file does not exist or is empty. */ export declare function readLogLines(filePath: string, lines?: number): string[]; /** * Read recent error lines from a log file. * Reads the last ~200 lines, filters for [ERROR] prefix, * and returns the most recent `maxLines` matches. */ export declare function readRecentErrors(logFilePath: string, maxLines?: number): string[]; /** * Follow (tail -f) a log file, printing new lines as they appear. * Uses fs.watchFile (polling) to reliably detect appended data, * then re-opens the file from the last known position on each change. * Returns an abort function to stop following. */ export declare function followLog(filePath: string): { stop: () => void; }; /** * Run the logs command. */ export declare function runLogs(opts: { follow?: boolean; lines?: number; }): Promise; //# sourceMappingURL=logs.d.ts.map