/** * Output directory manager for Meshy generation tasks. * * Organizes all downloaded files under {cwd}/meshy_output/ with: * - Per-project folders: {YYYYMMDD_HHmmss}_{prompt_slug}_{task_id_prefix}/ * - Auto-downloaded thumbnails * - Per-project metadata.json tracking task chains * - Global history.json index */ export interface TaskRecord { task_id: string; task_type: string; stage: string; prompt?: string; status: string; files: string[]; created_at: string; } /** * Infer a human-readable stage name from task type and API response type field. */ export declare function inferStage(taskType: string, apiType?: string): string; /** * Resolve (or create) the project directory for a task. * * For chained tasks (refine → preview, rig → source), pass parentTaskId * to place the output in the same project folder as the parent. */ export declare function resolveProjectDir(taskId: string, taskType: string, prompt?: string, parentTaskId?: string, createdAt?: string | number): string; /** * Generate the file path for a model download within a project directory. * Returns: /path/to/project/stage.ext (e.g., preview.glb, refined.glb) */ export declare function getFilePath(projectDir: string, stage: string, format: string): string; /** * Generate texture file path within a project directory. * Returns: /path/to/project/stage_texType.ext (e.g., refined_base_color.png) */ export declare function getTextureFilePath(projectDir: string, stage: string, textureType: string, url: string): string; /** * Record a completed task into the project's metadata.json. */ export declare function recordTask(projectDir: string, record: TaskRecord): void; /** * Download and save thumbnail to the project directory. * Silently skips on failure. */ export declare function saveThumbnail(projectDir: string, thumbnailUrl: string): Promise; /** * Get the output root path (for display purposes). */ export declare function getOutputRootPath(): string;