import type { SharedUtils, Problem, RuleContext } from '@bernierllc/validators-core'; import { jwtAlgorithmsRule } from './rules/jwt-algorithms.js'; import { keySizesRule } from './rules/key-sizes.js'; import { kdfParametersRule } from './rules/kdf-parameters.js'; import { hashAlgorithmsRule } from './rules/hash-algorithms.js'; import { cipherSuitesRule } from './rules/cipher-suites.js'; export type { CryptoParameterOptions, CryptoParameterMatch, JwtAlgorithm, HashAlgorithm, KdfType } from './types.js'; import type { CryptoParameterOptions } from './types.js'; export { jwtAlgorithmsRule, keySizesRule, kdfParametersRule, hashAlgorithmsRule, cipherSuitesRule }; export declare const cryptoParametersValidator: { name: string; domain: import("@bernierllc/validators-core").ValidationDomain; rules: import("@bernierllc/validators-core").Rule[]; validate: (target: string, context: RuleContext) => Promise; }; /** * Validates cryptographic parameters in code and configuration * * @param content - Content to validate (source code, configuration, etc.) * @param options - Validation options * @param utils - Shared utilities (optional) * @returns Array of validation problems * * @example * ```typescript * const problems = await validateCryptoParameters(sourceCode); * if (problems.length > 0) { * console.log('Crypto issues detected:', problems); * } * ``` */ export declare function validateCryptoParameters(content: string, options?: Partial, utils?: SharedUtils): Promise; /** * Quick check if content has any cryptographic issues * * @param content - Content to check * @param options - Validation options * @returns true if issues detected, false otherwise * * @example * ```typescript * if (await hasCryptoIssues(code)) { * console.log('Warning: Cryptographic issues detected'); * } * ``` */ export declare function hasCryptoIssues(content: string, options?: Partial): Promise; /** * Get count of crypto issues by type * * @param content - Content to analyze * @param options - Validation options * @returns Object with issue counts by type * * @example * ```typescript * const counts = await getCryptoIssueCounts(code); * console.log(`Found ${counts.jwtAlgorithms} JWT issues, ${counts.keySizes} key size issues`); * ``` */ export declare function getCryptoIssueCounts(content: string, options?: Partial): Promise<{ jwtAlgorithms: number; keySizes: number; kdfParameters: number; hashAlgorithms: number; cipherSuites: number; total: number; }>; /** * Get summary of crypto issues with severity breakdown * * @param content - Content to analyze * @param options - Validation options * @returns Summary object with severity counts * * @example * ```typescript * const summary = await getCryptoIssueSummary(code); * console.log(`${summary.errors} errors, ${summary.warnings} warnings`); * ``` */ export declare function getCryptoIssueSummary(content: string, options?: Partial): Promise<{ total: number; errors: number; warnings: number; byType: { jwtAlgorithms: number; keySizes: number; kdfParameters: number; hashAlgorithms: number; cipherSuites: number; }; }>; export { ValidatorsCryptoParametersError, type ValidatorsCryptoParametersErrorCode, type ValidatorsCryptoParametersErrorOptions } from './errors'; //# sourceMappingURL=index.d.ts.map