/** * Deploy command - deploys resources to main Tinybird workspace */ import { type BuildFromIncludeResult } from "../../generator/index.js"; import { type DeployCallbacks } from "../../api/deploy.js"; import type { BuildApiResult } from "../../api/build.js"; /** * Deploy command options */ export interface DeployCommandOptions { /** Working directory (defaults to cwd) */ cwd?: string; /** Skip pushing to API (just generate) */ dryRun?: boolean; /** Validate deploy with Tinybird API without applying */ check?: boolean; /** Allow deleting existing resources in main workspace deploys */ allowDestructiveOperations?: boolean; /** Callbacks for deploy progress */ callbacks?: DeployCallbacks; } /** * Deploy command result */ export interface DeployCommandResult { /** Whether the deploy was successful */ success: boolean; /** Build result with generated resources */ build?: BuildFromIncludeResult; /** Deploy API result (if not dry run) */ deploy?: BuildApiResult; /** Error message if failed */ error?: string; /** Duration in milliseconds */ durationMs: number; } /** * Run the deploy command * * Builds resources and deploys to main Tinybird workspace (production). * * @param options - Deploy options * @returns Deploy command result */ export declare function runDeploy(options?: DeployCommandOptions): Promise; //# sourceMappingURL=deploy.d.ts.map