import type { PullRequestInput } from './pr-input.mts'; export type PullRequestProvenance = { sessionId: string; /** The operating system user name. */ user: string; /** The host name; lowercased when rendered. */ host: string; /** The checkout label, see {@link worktreeLabel}. */ worktree: string; /** The Agent line text before the session, see `agentLabel`. */ agent: string; }; /** * The pull request body: the Summary, Impact, Related issues and Details sections followed by the * provenance lines, collapsed in a Provenance disclosure because they serve audits, not reviewers. * With `noSourceIssue` the Related issues section ends with `noSourceStatement` (default * {@link defaultNoSourceStatement}), after any `Refs` lines, instead of `- None`. Pure; the caller * supplies the device and worktree facts. Throws when the fields leave a code fence open. */ export declare function renderPullRequestBody(input: PullRequestInput, provenance: PullRequestProvenance, noSourceStatement?: string): string; /** * The worktree label: the path after `/worktrees/` when present, `main` for the repository's main * worktree, else the directory name. */ export declare function worktreeLabel(worktree: string, mainWorktree: string | undefined): string;