import type { ContentClassification, DataClassification, PolicyDecision } from "./policy-types.js"; import type { ModelMessage } from "../types/model-config.js"; export interface ProviderEgressClassification { classification: DataClassification; findings: ContentClassification["findings"]; } export interface ProviderEgressClassifier { classify(text: string): ProviderEgressClassification; } export interface ProviderEgressPolicyInput { requestId?: string; taskId: string; role: string; actor: string; providerId: string; messages: ModelMessage[]; classifier?: ProviderEgressClassifier; } export interface ProviderEgressPolicyDecision { allowed: boolean; requestId: string; outcome: PolicyDecision["outcome"]; safeMessage?: string; matchedRuleIds: string[]; redactionStatus: PolicyDecision["redactionStatus"]; } export declare function evaluateProviderEgressPolicy(input: ProviderEgressPolicyInput): ProviderEgressPolicyDecision;