/** * Competitor detection guardrail module. * * This module provides a guardrail for detecting mentions of competitors in text. * It uses case-insensitive keyword matching against a configurable list of competitor names. */ import { z } from 'zod'; import type { CheckFn } from '../types'; /** * Configuration schema for competitor detection. * * This configuration is used to specify a list of competitor names that will be * flagged if detected in the analyzed text. Matching is case-insensitive. */ export declare const CompetitorConfig: z.ZodObject<{ keywords: z.ZodArray; }, z.core.$strip>; export type CompetitorConfig = z.infer; /** * Context requirements for the competitors guardrail. */ export declare const CompetitorContext: z.ZodObject<{}, z.core.$strip>; export type CompetitorContext = z.infer; /** * Guardrail function to flag competitor mentions in text. * * Checks the provided text for the presence of any competitor names specified * in the configuration. Returns a `GuardrailResult` indicating whether any * competitor keyword was found. * * @param ctx Context object for the guardrail runtime (unused). * @param data Text to analyze for competitor mentions. * @param config Configuration specifying competitor keywords. * @returns GuardrailResult indicating whether any competitor keyword was detected. */ export declare const competitorsCheck: CheckFn; //# sourceMappingURL=competitors.d.ts.map