import { type RunAddBlockTransformCommandOptions } from './cli-add-shared.js'; /** * Add one block-to-block transform registration to an existing workspace block. * * @param options Command options for the block transform scaffold workflow. * @param options.cwd Working directory used to resolve the nearest official workspace. * Defaults to `process.cwd()`. * @param options.fromBlockName Source block name for `--from`. This must be the * full `namespace/block` form because transforms may originate from WordPress * core or third-party blocks outside the workspace. * @param options.toBlockName Target block for `--to`. A workspace block slug is * resolved against the workspace namespace, while a full `namespace/block` name * must still point at an existing workspace block. * @param options.transformName Human-entered transform name that will be * normalized and validated before files are written. * @returns A promise that resolves with the normalized target `blockSlug`, * resolved `fromBlockName`, resolved `toBlockName`, `transformSlug`, and owning * `projectDir` after the transform module, transform registry, entrypoint hook, * and inventory entry have been written successfully. * @throws {Error} When the command is run outside an official workspace, when * the target block is unknown, when `--from` is not a full block name, when * `--to` uses a non-workspace namespace, when the target block entrypoint does * not expose `registration.settings`, when the transform slug is invalid, or * when a conflicting file or inventory entry already exists. */ export declare function runAddBlockTransformCommand({ cwd, fromBlockName, toBlockName, transformName }: RunAddBlockTransformCommandOptions): Promise<{ blockSlug: string; fromBlockName: string; projectDir: string; toBlockName: string; transformSlug: string; }>;