/** * Bitbucket Provider Implementation * * Implements GitProvider interface for Bitbucket.org and Bitbucket Server/Data Center. * Handles repository validation, creation, and management via Bitbucket API 2.0. * * @module providers/bitbucket-provider */ import { BaseGitProvider, type PlatformConfig, type RepoValidationResult, type OwnerValidationResult, type CreateRepoOptions } from '../git-provider.js'; /** * Bitbucket Provider * * Implements Git operations for Bitbucket platform. * Supports both Bitbucket.org and Bitbucket Server/Data Center. */ export declare class BitbucketProvider extends BaseGitProvider { constructor(config?: Partial); /** * Validate if a repository exists on Bitbucket */ validateRepository(owner: string, repo: string, token?: string): Promise; /** * Validate if a Bitbucket workspace (user or team) exists */ validateOwner(owner: string, token?: string): Promise; /** * Create a new repository on Bitbucket */ createRepository(options: CreateRepoOptions, token: string): Promise; /** * Check if a workspace is a team (organization) */ isOrganization(account: string, token?: string): Promise; /** * Get token creation URL */ getTokenUrl(): string; /** * Get required token scopes */ getRequiredScopes(isOrganization?: boolean): string[]; /** * Override SSH user for Bitbucket */ protected getSSHUser(): string; /** * Override getAuthHeaders for Bitbucket-specific auth (Bearer token) */ protected getAuthHeaders(token: string): Record; } /** * Create a Bitbucket provider instance */ export declare function createBitbucketProvider(config?: Partial): BitbucketProvider; //# sourceMappingURL=bitbucket-provider.d.ts.map