import { PromptProvider } from "../lib/prompt-types.mjs"; import { Readable, Writable } from "node:stream"; //#region src/prompt-providers/clack.d.ts /** * Options for {@link createClackPromptProvider}. */ interface ClackPromptProviderOptions { /** * Custom input stream to read from instead of `process.stdin`. * Useful for testing — pass a `Readable` with `isTTY = true` and * a no-op `setRawMode` to emulate a terminal. */ input?: Readable; /** * Custom output stream to write to instead of `process.stdout`. */ output?: Writable; } /** * Creates a prompt provider backed by @clack/prompts. * Requires `@clack/prompts` as a peer dependency. * * The provider uses dynamic imports so that `@clack/prompts` is only * loaded when prompting actually occurs. */ declare function createClackPromptProvider(providerOptions?: ClackPromptProviderOptions): PromptProvider; /** * Default clack prompt provider, uses stdin/stdout */ declare const ClackPromptProvider: PromptProvider; //#endregion export { ClackPromptProvider, ClackPromptProviderOptions, createClackPromptProvider }; //# sourceMappingURL=clack.d.mts.map