import { type IAgentMetadataSource } from "./metadata.js"; import { type IAgentHeadBranchPullRequest } from "./copilotd/sessionGitHubReferences.js"; export type { IAgentHeadBranchPullRequest } from "./copilotd/sessionGitHubReferences.js"; /** VS Code folder metadata is authoritative, even when it contains no current PR. */ export declare function readAgentHeadBranchPullRequest(source: IAgentMetadataSource): IAgentHeadBranchPullRequest | undefined; /** Retains only the validated head-branch reference when caching client metadata. */ export declare function toAgentHeadBranchPullRequestMeta(source: IAgentMetadataSource): IAgentMetadataSource["_meta"]; /** Publishes the primary checkout's PR for clients using the Copilot GitHub-reference convention. */ export declare function withAgentSessionGitHubReferences(source: T): T;