export interface ExternalStep { /** Imperative, e.g. `Setting up your Convex backend`. */ title: string; /** Context printed before the command runs. */ detail?: string[]; /** A warning shown before running — browser windows, interactive prompts. */ heads_up?: string; command: string; /** * The command to suggest on failure. Defaults to `command`; differs when the * real invocation has flags the user should not retype. */ retry?: string; /** When this fails, abandon the rest of the sequence. */ required?: boolean; } export interface ExternalContext { cwd: string; /** Prefix each title with its position, as the originals did by hand. */ numbered?: boolean; } /** Runs one step. Returns false when it failed. */ export declare function runExternal(step: ExternalStep, cwd: string, label?: string): boolean; /** * Runs steps in order, stopping early if a `required` one fails. * * Returns whether every step ran successfully. */ export declare function runExternalSequence(steps: ExternalStep[], { cwd, numbered }: ExternalContext): boolean;