export type InstallMode = 'docker' | 'source'; export interface StarterOptions { folder: string; /** Null: ask the reader. */ mode: InstallMode | null; /** The release tag to install, or null for the newest. */ ref: string | null; } export type ParsedArgs = { kind: 'help'; } | { kind: 'version'; } | { kind: 'run'; options: StarterOptions; } | { kind: 'error'; message: string; }; /** A release tag as the starter accepts it from --ref: v2.0.0, or v2.0.0-rc.8. */ export declare const REF_PATTERN: RegExp; /** Reads the arguments after `npx ririko`. Never throws: a bad argument is an `error` result. */ export declare function parseArgs(argv: readonly string[]): ParsedArgs; export declare function helpText(version: string): string;