/** * Provider-neutral formatting utilities for issues and PRs. * * These functions operate on the generic Issue / PrReviewData types * from git/types.ts and contain no provider-specific logic. */ import type { CreatePrOptions, Issue, PrReviewData } from './types.js'; export declare const TAKT_MANAGED_PR_MARKER = ""; export declare function stripTaktManagedPrMarker(body: string): string; export declare function isTaktManagedPrBody(body: string | null | undefined): boolean; export declare function buildTaktManagedPrOptions(body: string): Pick; export declare function parseIssueNumberFromUrl(url: string): number; /** * Format an issue into task text for workflow execution. * * Output format: * ``` * ## Issue #6: Fix authentication bug * * {body} * * ### Labels * bug, priority:high * * ### Comments * **user1**: Comment body... * ``` */ export declare function formatIssueAsTask(issue: Issue): string; /** * Parse `#N` patterns from argument strings. * Returns issue numbers found, or empty array if none. * * Each argument must be exactly `#N` (no mixed text). * Examples: * ['#6'] → [6] * ['#6', '#7'] → [6, 7] * ['Fix bug'] → [] * ['#6', 'and', '#7'] → [] (mixed, not all are issue refs) */ export declare function parseIssueNumbers(args: string[]): number[]; /** * Check if a single task string is an issue reference (`#N`). */ export declare function isIssueReference(task: string): boolean; /** * Format PR review data into task text for workflow execution. */ export declare function formatPrReviewAsTask(prReview: PrReviewData): string; /** * Build PR body from issues and execution report. * Supports multiple issues (adds "Closes #N" for each). */ export declare function buildPrBody(issues: Issue[] | undefined, report: string, orderContent?: string): string; //# sourceMappingURL=format.d.ts.map