/** * Push policy violations to the Cortex Cloud API. * * Uses the same endpoint/api_key as policy sync since * violations require the "policy" scope. */ type ViolationItem = { rule_id: string; severity: "error" | "warning" | "info"; message: string; file_path?: string; metadata?: string; occurred_at: string; }; export type ViolationPushContext = { repo?: string; instance_id?: string; session_id?: string; }; export type ViolationPushResult = { success: boolean; count: number; error?: string; }; export declare function setViolationPushContext(context: ViolationPushContext): void; /** * Queue a violation for the next push. */ export declare function queueViolation(item: ViolationItem): void; /** * Push all queued violations to cortex-web. * Fire-and-forget — errors are logged but do not throw. */ export declare function pushViolations(endpoint: string, apiKey: string): Promise; /** * Return the current queue length (for diagnostics). */ export declare function pendingCount(): number; export {}; //# sourceMappingURL=push.d.ts.map