/** * Utility helpers for dealing with guardrail execution contexts. * * This module exposes utilities to validate runtime objects against guardrail context schemas. */ import { GuardrailError } from '../exceptions'; /** * Error thrown when context validation fails. */ export declare class ContextValidationError extends GuardrailError { constructor(message: string); } /** * Validates a context object against a guardrail's declared context schema. * * @param guardrail - Guardrail whose context requirements define the schema. * @param ctx - Application context instance to validate. * @throws {ContextValidationError} If ctx does not satisfy required fields. * @throws {TypeError} If ctx's attributes cannot be introspected. */ export declare function validateGuardrailContext(guardrail: { definition: { name: string; ctxRequirements: unknown; }; }, ctx: TContext): void; /** * Type guard to check if an object has a specific property. */ export declare function hasProperty(obj: T, prop: K): obj is T & Record; /** * Type guard to check if an object has all required properties. */ export declare function hasRequiredProperties(obj: T, requiredProps: K[]): obj is T & Record; //# sourceMappingURL=context.d.ts.map