import { Connection } from '@salesforce/core'; export type RepoInfo = { repoUrl: string; repoType: string; created: boolean; }; export type PipelineStageInfo = { id: string; name?: string; }; export type CreatePipelineParams = { connection: Connection; name: string; repo: string; repoType: string; createRepo?: boolean; repoOwner?: string; bitbucketWorkspace?: string; bitbucketProjectKey?: string; stages?: string[]; projectIds?: string[]; }; export type CreatePipelineResult = { success: boolean; pipelineId?: string; name?: string; status?: string; repository?: RepoInfo; stages?: PipelineStageInfo[]; error?: string; }; /** * Detects repo type from a URL. Returns 'github' or 'bitbucket', or undefined. */ export declare function detectRepoType(repoUrl: string): string | undefined; /** * Validates that a GitHub owner (org or user) exists. * Primary: uses `gh api` which handles keyring-based auth automatically. * Fallback: direct GitHub API call with token (for environments without gh CLI). * Skips validation silently when neither mechanism can authenticate, so we * don't block the command when the check itself is unavailable. */ export declare function validateGitHubOwner(owner: string, token?: string, fetchFn?: typeof fetch): Promise; export declare class GitHubOwnerNotFoundError extends Error { readonly owner: string; constructor(owner: string); } /** * Creates a new DevOps Center pipeline via the Connect API. * POST /services/data/v{version}/connect/devops/pipelines */ export declare function createPipeline(params: CreatePipelineParams): Promise;