@capgo/cli
Version:
A CLI to upload to capgo servers
16 lines (15 loc) • 618 B
TypeScript
import type { PrescanOutcome } from './types';
export interface WarningGateOptions {
silent?: boolean;
/** test seam; defaults to canPromptInteractively() at call time */
interactive?: boolean;
/** test seam; defaults to @clack/prompts confirm */
confirmImpl?: (opts: {
message: string;
}) => Promise<boolean | symbol>;
}
/**
* Resolve an 'ask' outcome: interactive → user decides; non-interactive → proceed (per spec).
* Returns the final go/no-go.
*/
export declare function resolveWarningGate(outcome: PrescanOutcome, opts?: WarningGateOptions): Promise<'proceed' | 'block'>;