/** * Branch management commands */ import { type TinybirdBranch } from "../../api/branches.js"; /** * Branch command options */ export interface BranchCommandOptions { /** Working directory (defaults to cwd) */ cwd?: string; } /** * Result of listing branches */ export interface BranchListResult { /** Whether the operation was successful */ success: boolean; /** List of branches */ branches?: TinybirdBranch[]; /** Error message if failed */ error?: string; } /** * Result of getting branch status */ export interface BranchStatusResult { /** Whether the operation was successful */ success: boolean; /** Current git branch */ gitBranch: string | null; /** Sanitized Tinybird branch name */ tinybirdBranchName: string | null; /** Whether we're on the main branch */ isMainBranch: boolean; /** Tinybird branch info (if exists) */ tinybirdBranch?: TinybirdBranch; /** Whether a cached token exists */ hasCachedToken: boolean; /** Dashboard URL for the branch */ dashboardUrl?: string; /** Error message if failed */ error?: string; } /** * Result of deleting a branch */ export interface BranchDeleteResult { /** Whether the operation was successful */ success: boolean; /** Error message if failed */ error?: string; } /** * List all Tinybird branches * * @param options - Command options * @returns List result */ export declare function runBranchList(options?: BranchCommandOptions): Promise; /** * Get current branch status * * @param options - Command options * @returns Status result */ export declare function runBranchStatus(options?: BranchCommandOptions): Promise; /** * Delete a Tinybird branch * * @param name - Branch name to delete * @param options - Command options * @returns Delete result */ export declare function runBranchDelete(name: string, options?: BranchCommandOptions): Promise; /** * List cached branches (requires API call to get workspace ID) */ export declare function runBranchListCached(options?: BranchCommandOptions): Promise<{ branches: Record; }>; //# sourceMappingURL=branch.d.ts.map