import { Connection } from '@salesforce/core'; export type PrepareWorkItemParams = { connection: Connection; pipelineId: string; workItemId: string; sourceStageId?: string; targetStageId: string; }; export type PrepareWorkItemResult = { success: boolean; requestToken: string | null; errorCode: string | null; errorMessage: string | null; }; /** * Prepares a work item for one-off promotion by creating the necessary branches * and pull requests in the source control repository. * API: POST /services/data/v{version}/connect/devops/pipelines/{pipelineId}/promote/oneoff/prepare */ export declare function prepareWorkItem(params: PrepareWorkItemParams): Promise; export type WorkItemContext = { projectId: string; pipelineStageId: string; }; export declare function resolveProjectIdFromWorkItem(connection: Connection, workItemId: string): Promise;