import type { GtfsValidationResult, GtfsValidatorOptions } from './interfaces/index.js'; import type { SupportedPlatform } from './types/index.js'; export { GtfsValidationError } from './errors/index.js'; export type { GtfsValidationResult, GtfsValidatorOptions } from './interfaces/index.js'; export type { SupportedLanguage, SupportedPlatform } from './types/index.js'; /** * Runs the GTFS validator on the specified input. * * @param input Path to the GTFS feed (file or directory) * @param options Validation options * @returns Promise resolving to validation results * * @example * ```ts * try { * const result = await GTFSValidator('./gtfs-feed.zip', { * lang: 'en', * timeout: 300000, // 5 minutes * out_file: './validation-report.json' * }); * * console.log(`Validation completed in ${result.executionTime}ms`); * console.log(`Found ${result.summary.errorCount} errors`); * } catch (err) { * if (err instanceof GTFSValidatorError) { * console.error(`Validation failed: ${err.message}`); * } * } * ``` */ /** * Runs the GTFS validator on the specified input. * * @param input - Path to the GTFS feed (file or directory) * @param options - Validation options * @returns Promise resolving to validation results * * @throws {GtfsValidationError} If validation fails or input is invalid * * @example * ```ts * try { * const result = await GTFSValidator('./gtfs-feed.zip', { * lang: 'en', * timeout: 300000, // 5 minutes * out_file: './validation-report.json' * }); * * console.log(`Validation completed in ${result.executionTime}ms`); * console.log(`Found ${result.summary.errorCount} errors`); * } catch (err) { * if (err instanceof GtfsValidationError) { * console.error(`Validation failed: ${err.message}`); * console.error(`Error code: ${err.code}`); * } * } * ``` */ export declare function GtfsValidator(input: string, options?: GtfsValidatorOptions): Promise; /** * Gets information about the available validator binary for the current platform. * * @returns Information about the validator binary including availability status * * @example * ```ts * const info = await getValidatorInfo(); * if (info.isAvailable) { * console.log(`Binary found at: ${info.binaryPath}`); * } else { * console.log(`Binary not found for platform: ${info.platform}`); * } * ``` */ export declare function getValidatorInfo(): Promise<{ binaryName: string; binaryPath: string; isAvailable: boolean; platform: SupportedPlatform; }>;