/** * Import-specific logging functions for CLEO system. * Ported from lib/data/import-logging.sh * * Provides structured audit logging for import operations including * start, success, error, and conflict events. * * @task T4552 * @epic T4545 */ /** Import package metadata extracted from the export file. */ export interface ImportPackageMeta { sourceFile: string; sourceProject: string; exportedAt: string; packageChecksum: string; taskCount: number; } /** Import conflict types. */ export type ImportConflictType = 'duplicate_title' | 'missing_dependency' | 'missing_parent' | 'depth_exceeded' | 'phase_mismatch'; /** Import conflict resolution strategies. */ export type ImportConflictResolution = 'skip' | 'rename' | 'force' | 'strip' | 'create_placeholder' | 'fail'; /** Import options for logging context. */ export interface ImportOptions { parent?: string; phase?: string; resetStatus?: boolean; [key: string]: unknown; } /** * Extract package metadata from an export file. * @task T4552 */ export declare function extractPackageMeta(sourceFilePath: string): Promise; /** * Log import operation start with package metadata. * @task T4552 */ export declare function logImportStart(sourceFilePath: string, sessionId?: string, cwd?: string): Promise; /** * Log import operation completion with full metadata. * @task T4552 */ export declare function logImportSuccess(sourceFilePath: string, tasksImported: string[], idRemap: Record, conflicts?: Array<{ type: string; resolution: string; }>, options?: ImportOptions, sessionId?: string, cwd?: string): Promise; /** * Log import operation error with diagnostic details. * @task T4552 */ export declare function logImportError(sourceFilePath: string, errorMessage: string, errorCode: string | number, stage?: 'validation' | 'parsing' | 'remapping' | 'writing' | 'unknown', sessionId?: string, cwd?: string): Promise; /** * Log import conflict detection and resolution. * @task T4552 */ export declare function logImportConflict(conflictType: ImportConflictType, taskId: string, conflictDetails: Record, resolution: ImportConflictResolution, sessionId?: string, cwd?: string): Promise; //# sourceMappingURL=import-logging.d.ts.map