import type { CommitMetadata } from "../../types.js"; import type { EmbeddedSubtask, HierarchicalTask } from "./issue-parsing.js"; /** Common task fields needed for rendering metadata */ export interface TaskLike { id: string; priority: number; completed: boolean; description: string; result: string | null; created_at: string; updated_at: string; started_at: string | null; completed_at: string | null; blockedBy: string[]; blocks: string[]; metadata: { commit?: CommitMetadata; } | null; } /** * Create a compound subtask ID from parent ID and index. * @param parentId - The parent issue number * @param index - The local subtask index (1-based) * @returns The compound ID string */ export declare function createSubtaskId(parentId: string, index: number): string; /** * Render task metadata as HTML comments. * @param task - The task to render metadata for * @param prefix - The comment prefix ("task" for root, "subtask" for children) * @param parentId - Optional parent ID for subtasks * @returns Array of HTML comment lines */ export declare function renderTaskMetadataComments(task: TaskLike, prefix: string, parentId?: string | null): string[]; /** * Render an issue body with embedded subtasks. * @param context - The parent task context * @param subtasks - Array of subtasks to embed * @returns The rendered markdown body */ export declare function renderIssueBody(context: string, subtasks: EmbeddedSubtask[]): string; /** * Render an issue body with hierarchical task tree and details. * Uses a merged format where each task is a
block with * tree characters for nested tasks to show hierarchy. * @param context - The root task context * @param descendants - All descendant tasks with hierarchy info * @returns The rendered markdown body */ export declare function renderHierarchicalIssueBody(context: string, descendants: HierarchicalTask[]): string; //# sourceMappingURL=issue-rendering.d.ts.map