/** * Info command - shows information about the current project and workspace */ import { type TinybirdBranch } from "../../api/branches.js"; /** * Info command options */ export interface InfoCommandOptions { /** Working directory (defaults to cwd) */ cwd?: string; /** Output as JSON */ json?: boolean; } /** * Cloud/workspace information */ export interface CloudInfo { /** Workspace name */ workspaceName: string; /** Workspace ID */ workspaceId: string; /** User email */ userEmail: string; /** API host URL */ apiHost: string; /** Dashboard URL */ dashboardUrl?: string; /** Token */ token: string; } /** * Project configuration information */ export interface ProjectInfo { /** Current working directory */ cwd: string; /** Path to tinybird.json */ configPath: string; /** Development mode */ devMode: string; /** Git branch */ gitBranch: string | null; /** Tinybird branch (sanitized) */ tinybirdBranch: string | null; /** Whether on main branch */ isMainBranch: boolean; } /** * Current branch information (when working on a branch) */ export interface BranchInfo { /** Branch name */ name: string; /** Branch ID */ id: string; /** Branch token */ token: string; /** Dashboard URL */ dashboardUrl?: string; } /** * Local Tinybird workspace information */ export interface LocalInfo { /** Whether local Tinybird is running */ running: boolean; /** Workspace name */ workspaceName?: string; /** Workspace ID */ workspaceId?: string; /** API host URL */ apiHost: string; /** Dashboard URL */ dashboardUrl?: string; /** Token */ token?: string; } /** * Result of the info command */ export interface InfoCommandResult { /** Whether the operation was successful */ success: boolean; /** Cloud/workspace info */ cloud?: CloudInfo; /** Local workspace info (when devMode is local) */ local?: LocalInfo; /** Project info */ project?: ProjectInfo; /** Current branch info (if on a branch) */ branch?: BranchInfo; /** List of all branches */ branches?: TinybirdBranch[]; /** Error message if failed */ error?: string; } /** * Run the info command * * @param options - Command options * @returns Info result */ export declare function runInfo(options?: InfoCommandOptions): Promise; //# sourceMappingURL=info.d.ts.map