Files
codegraph/src/installer/clack.d.ts
T
a66683d3eb feat(installer): offer CodeGraph Pro beta signup after install and upgrade (#1297)
One-time, strictly opt-in prompt at the end of codegraph install and
codegraph upgrade to join the CodeGraph Pro beta waitlist (same list as
the getcodegraph.com homepage form). Nothing is sent unless the user
answers yes AND enters an email; either answer is recorded machine-wide
so no later install or upgrade re-asks, and --yes / non-interactive / CI
runs never see the prompt.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 19:11:06 -05:00

59 lines
1.6 KiB
TypeScript

/**
* Type declarations for @clack/prompts
*
* The package ships ESM-only (.d.mts) which TypeScript can't resolve
* with moduleResolution "node". We declare the subset we use here.
*/
declare module '@clack/prompts' {
export function intro(title?: string): void;
export function outro(message?: string): void;
export function cancel(message?: string): void;
export function isCancel(value: unknown): value is symbol;
export function confirm(opts: {
message: string;
active?: string;
inactive?: string;
initialValue?: boolean;
}): Promise<boolean | symbol>;
export function select<Value>(opts: {
message: string;
options: { value: Value; label: string; hint?: string }[];
initialValue?: Value;
}): Promise<Value | symbol>;
export function multiselect<Value>(opts: {
message: string;
options: { value: Value; label: string; hint?: string }[];
initialValues?: Value[];
required?: boolean;
}): Promise<Value[] | symbol>;
export function text(opts: {
message: string;
placeholder?: string;
defaultValue?: string;
initialValue?: string;
validate?: (value: string | undefined) => string | Error | undefined;
}): Promise<string | symbol>;
export function spinner(): {
start(message?: string): void;
stop(message?: string): void;
message(message?: string): void;
};
export function note(message: string, title?: string): void;
export const log: {
message(message: string): void;
info(message: string): void;
success(message: string): void;
step(message: string): void;
warn(message: string): void;
error(message: string): void;
};
}