import { Connection } from '@salesforce/core'; export type WorkItemDetail = { workItemId: string; workItemName: string; subject: string; branchName?: string; targetBranch?: string; projectId: string; provider?: string; }; export type CreatePullRequestResult = { success: boolean; workItemName?: string; url?: string; sourceBranch?: string; targetBranch?: string; error?: string; }; /** * Queries a work item (by Name or Id) and resolves info needed to create a pull request. */ export declare function fetchWorkItemDetail(connection: Connection, filter: { name: string; } | { id: string; }): Promise; /** * Creates a pull request via the Salesforce Connect API. * POST /connect/devops/workItems/{workItemId}/review * Salesforce handles VCS authentication and workspace resolution. */ export declare function createPullRequest(connection: Connection, workItemId: string): Promise; /** * Attempts to resolve a GitHub authentication token from the environment or the gh CLI. * Used by pipeline create for pre-flight owner validation. */ export declare function resolveGitHubToken(): Promise;