import consola from "consola"; /** * One step in a CLI chain. * Defines which types the context needs to extend and how it extends the context * * Cli Steps can be chained to slowly build up the context over time * * @example * ```ts * const step1: CliStep = async (ctx) => { * return {...ctx, foo: "hello" } * } * * const step2: CliStep<{ foo: string }, { bar: number }> = async (ctx) => { * return { ...ctx, bar: 42 } * } * * const initial = { baz: "baz" } as const; * const ctx1 = await step1(initial); * const ctx2 = await step2(ctx1); * * ctx2 // Has type { foo: string, bar: number, baz: "baz" } * ``` */ export type CliStep = (ctx: Ctx) => Promise; /** * Wrapper to exit the process if the user presses CTRL+C. */ export declare const prompt: typeof consola.prompt; export declare const promptSelection: (message: string, options?: { initial?: T; options: { label: string; value: T; }[]; }) => Promise; //# sourceMappingURL=utils.d.ts.map