import type { IAgentMetadataSource } from "../metadata.js"; export interface IAgentHeadBranchPullRequest { readonly owner: string; readonly repo: string; readonly number: number; readonly title: string; readonly url: string; readonly state?: "open" | "closed" | "merged" | "draft"; } /** Validates a canonical GitHub PR URL, including GitHub Enterprise origins. */ export declare function parseHeadBranchPullRequestUrl(value: string): Omit | undefined; /** Reads the host-owned head-branch PR, without promoting attached or created-only references. */ export declare function readCopilotHeadBranchPullRequest(source: IAgentMetadataSource): IAgentHeadBranchPullRequest | undefined; /** Publishes the head-branch convention while preserving unrelated metadata. */ export declare function withCopilotHeadBranchPullRequest(meta: IAgentMetadataSource["_meta"], pullRequest: IAgentHeadBranchPullRequest | undefined): IAgentMetadataSource["_meta"];