snes-disassembler
Version:
A Super Nintendo (SNES) ROM disassembler for 65816 assembly
34 lines • 1.08 kB
TypeScript
/**
* Input Validation Module
*
* Provides comprehensive validation for all user inputs
* to prevent runtime errors and improve user experience.
*/
import { CLIOptions } from '../types/cli-types';
import { Result, DisassemblerError } from '../types/result-types';
export declare class InputValidator {
/**
* Validate ROM file path and accessibility
*/
static validateROMFile(romPath: string): Promise<Result<string, DisassemblerError>>;
/**
* Validate address range
*/
static validateAddressRange(start?: string, end?: string): Result<{
start?: number;
end?: number;
}, DisassemblerError>;
/**
* Validate output directory
*/
static validateOutputDirectory(outputDir: string): Promise<Result<string, DisassemblerError>>;
/**
* Validate CLI options
*/
static validateCLIOptions(options: CLIOptions): Result<CLIOptions, DisassemblerError[]>;
/**
* Parse hex address from various formats
*/
private static parseHexAddress;
}
//# sourceMappingURL=input-validator.d.ts.map