/** * Pull command - downloads all cloud resources as Tinybird datafiles */ import { type ResourceFileType } from "../../api/resources.js"; /** * Pull command options */ export interface PullCommandOptions { /** Working directory (defaults to cwd) */ cwd?: string; /** Output directory for pulled files (defaults to current directory) */ outputDir?: string; /** Whether to overwrite existing files (defaults to false) */ overwrite?: boolean; } /** * Single file written by pull */ export interface PulledFileResult { /** Resource name */ name: string; /** Resource type */ type: ResourceFileType; /** Filename written */ filename: string; /** Absolute path written */ path: string; /** Path relative to cwd */ relativePath: string; /** Whether this file was newly created or overwritten */ status: "created" | "overwritten"; } /** * Pull command result */ export interface PullCommandResult { /** Whether pull was successful */ success: boolean; /** Output directory used */ outputDir?: string; /** Files written */ files?: PulledFileResult[]; /** Pull statistics */ stats?: { datasources: number; pipes: number; connections: number; total: number; }; /** Error message if failed */ error?: string; /** Duration in milliseconds */ durationMs: number; } /** * Pull all resources from Tinybird and write them as datafiles */ export declare function runPull(options?: PullCommandOptions): Promise; //# sourceMappingURL=pull.d.ts.map