declare namespace index_d_exports { export { getChainPrefix, validateFilePath, validatePort, validatePositiveInteger, validatePostgresConnectionString, validateUrl }; } /** * Configuration validation utilities for the Eclesia indexer * Validates configuration parameters before initialization */ /** * Validates a URL string * @param url - The URL to validate * @param fieldName - Name of the field for error messages * @throws {ConfigurationError} If URL is invalid */ declare function validateUrl(url: string, fieldName?: string): void; /** * Validates a file path exists and is readable * @param filePath - The file path to validate * @param fieldName - Name of the field for error messages * @throws {ConfigurationError} If file doesn't exist or isn't readable */ declare function validateFilePath(filePath: string, fieldName?: string): void; /** * Validates a PostgreSQL connection string * @param connectionString - The connection string to validate * @param fieldName - Name of the field for error messages * @throws {ConfigurationError} If connection string is invalid */ declare function validatePostgresConnectionString(connectionString: string, fieldName?: string): void; /** * Validates a port number * @param port - The port number to validate * @param fieldName - Name of the field for error messages * @throws {ConfigurationError} If port is invalid */ declare function validatePort(port: number, fieldName?: string): void; /** * Validates a positive integer * @param value - The value to validate * @param fieldName - Name of the field for error messages * @throws {ConfigurationError} If value is not a positive integer */ declare function validatePositiveInteger(value: number, fieldName?: string): void; /** * Gets and validates the chain prefix from environment variables * @param defaultPrefix - Default prefix to use if environment variable is not set * @returns The validated chain prefix * @throws {ConfigurationError} If chain prefix is invalid */ declare function getChainPrefix(defaultPrefix?: string): string; //#endregion export { index_d_exports }; //# sourceMappingURL=index.d.mts.map