UNPKG

@builder.io/dev-tools

Version:

Builder.io Visual CMS Devtools

26 lines (25 loc) 830 B
import type { DevToolsSys } from "@builder.io/dev-tools/core"; import type { CLIArgs } from "./index"; export interface HydrateFigmaFramesArgs { sys: DevToolsSys; credentials: { builderPublicKey?: string; builderPrivateKey?: string; }; jobId: string; workspaceRoot: string; /** Optional logger; defaults to no-op. */ log?: (message: string) => void; } export declare function hydrateFigmaFrames(args: HydrateFigmaFramesArgs): Promise<{ written: number; skipped: boolean; figmaDir: string; }>; /** * CLI: `builderio hydrate-figma --jobId <id> [--cwd <path>]` * * Lets you exercise the hydration flow against a real service without * spinning up the full launch pipeline. */ export declare function runHydrateFigmaCommand(sys: DevToolsSys, args: CLIArgs): Promise<void>;