import { Config, DevServerConfig, YamlConfig } from "../types"; /** * Clear the validation cache * Useful for testing or when config files change */ export declare function clearValidationCache(): void; /** * Type guard to validate DevServerConfig object at runtime * In production, performs minimal validation for performance */ export declare function isValidDevServerConfig(obj: unknown): obj is DevServerConfig; /** * Type guard to validate Config object at runtime * In production, caches results for performance unless SHAKAPACKER_STRICT_VALIDATION is set * * IMPORTANT: Path traversal security checks ALWAYS run regardless of environment or validation mode. * This ensures application security is never compromised for performance. */ export declare function isValidConfig(obj: unknown): obj is Config; /** * Type guard to validate Rspack plugin instance * Checks if an object looks like a valid Rspack plugin */ export declare function isValidRspackPlugin(obj: unknown): boolean; /** * Type guard to validate array of Rspack plugins * Ensures all items in the array are valid plugin instances */ export declare function isValidRspackPluginArray(arr: unknown): boolean; /** * Type guard to validate YamlConfig structure * In production, performs minimal validation for performance */ export declare function isValidYamlConfig(obj: unknown): obj is YamlConfig; /** * Validates partial config used for merging * Ensures that if fields are present, they have the correct types * In production, performs minimal validation for performance */ export declare function isPartialConfig(obj: unknown): obj is Partial; /** * Creates a validation error with helpful context */ export declare function createConfigValidationError(configPath: string, environment: string, details?: string): Error; //# sourceMappingURL=typeGuards.d.ts.map