import { ConditionValue } from "./conditions"; import { Guard, SemanticSimilarityInput, InstructionAdherenceInput, UncertaintyInput } from "./model"; export interface PrebuiltGuardOptions { /** Override the default pass/fail condition. Default: isTrue() */ condition?: (v: ConditionValue) => boolean; /** Maximum time to wait for the evaluator API response in ms. Default: 60000 */ timeoutMs?: number; /** Evaluator-specific configuration (e.g. threshold). */ config?: Record; } export declare function toxicityGuard(options?: PrebuiltGuardOptions): Guard; export declare function piiGuard(options?: PrebuiltGuardOptions): Guard; export declare function secretsGuard(options?: PrebuiltGuardOptions): Guard; export declare function promptInjectionGuard(options?: PrebuiltGuardOptions): Guard; export declare function profanityGuard(options?: PrebuiltGuardOptions): Guard; export declare function sexismGuard(options?: PrebuiltGuardOptions): Guard; export declare function jsonValidatorGuard(options?: PrebuiltGuardOptions): Guard; export declare function sqlValidatorGuard(options?: PrebuiltGuardOptions): Guard; export declare function regexValidatorGuard(options?: PrebuiltGuardOptions): Guard; export declare function instructionAdherenceGuard(options?: PrebuiltGuardOptions): Guard; export declare function semanticSimilarityGuard(options?: PrebuiltGuardOptions): Guard; export declare function promptPerplexityGuard(options?: PrebuiltGuardOptions): Guard>; export declare function uncertaintyGuard(options?: PrebuiltGuardOptions): Guard; export declare function toneDetectionGuard(options?: PrebuiltGuardOptions): Guard>; export interface CustomEvaluatorGuardOptions { evaluatorVersion?: string; evaluatorConfig?: Record; /** Which field in result to check. Default: "pass" */ conditionField?: string; /** Override the default condition. Default: isTrue() */ condition?: (v: ConditionValue) => boolean; /** Maximum time to wait for result in ms. Default: 60000 */ timeoutMs?: number; } /** * Guard backed by a user-defined evaluator on the Traceloop platform. * Calls POST /v2/evaluators/{slug}/executions and polls for the result. */ export declare function customEvaluatorGuard(slug: string, options?: CustomEvaluatorGuardOptions): Guard; //# sourceMappingURL=guards.d.ts.map