emv
Version:
EMV / Chip and PIN CLI and library for PC/SC card readers
31 lines • 753 B
TypeScript
import { type CommandContext } from './commands.js';
interface ParsedOptions {
help: boolean;
version: boolean;
format: string | undefined;
verbose: boolean;
reader: string | undefined;
}
interface ParsedArgs {
options: ParsedOptions;
positionals: string[];
}
/**
* Parse command line arguments
*/
export declare function parseArgs(args: string[]): ParsedArgs;
/**
* Show help text
*/
export declare function showHelp(): string;
/**
* Get package version
*/
export declare function showVersion(): string;
/**
* Run a command and handle errors
*/
export declare function runCommand(command: string, args: string[], ctx: CommandContext): Promise<number>;
export {};
//# sourceMappingURL=cli.d.ts.map