/** * CLI file-based logging for CrewX SDK events. * * Subscribe to task:start / task:end events from a Crewx instance * and write structured log files to .crewx/logs/ in the workspace root. * * File name format: {YYYYMMDDTHHmmss}_{traceId}.log * e.g. 20260412T145044_tsk_AbCdEfGh.log * * Format mirrors cli-bak TaskManagementService for backward compatibility. */ import type { Crewx } from '@crewx/sdk'; /** * Attach file-based logging to a Crewx instance. * Subscribes to task:start and task:end events and writes log files. * * @param crewx - The Crewx instance to attach logging to * @param workspaceRoot - Root directory for .crewx/logs/ (default: process.cwd()) * @returns Cleanup function that removes all event listeners */ export declare function attachFileLogger(crewx: Crewx, workspaceRoot?: string): () => void;