vies-checker
Version:
Modern European VIES VAT number validator with full TypeScript support
14 lines (13 loc) • 488 B
TypeScript
import { EuropeanMemberState } from './interfaces.js';
/**
* Validates and normalizes input parameters
*
* @param country - Country code (will be normalized to uppercase)
* @param vatNumber - VAT number (will be normalized by removing spaces/separators)
* @returns Normalized and validated inputs
* @throws {ViesError} If inputs are invalid
*/
export declare function validateInput(country: string, vatNumber: string): {
country: EuropeanMemberState;
vatNumber: string;
};