import { BundleLeak, Violation } from "./types.js"; //#region src/reporter.d.ts /** * Generates a context-aware fix suggestion based on the environment variable * name and the import chain that makes it reachable from the client. * Variables matching credential keywords receive a security-focused warning. * Variables whose import chain passes through a server-named file receive * advice about import structure. All others receive a general relocation suggestion. * * @param envVarName - The name of the leaked environment variable. * @param importChain - The ordered list of module IDs from the client entry to the leak. * @returns A human-readable recommendation for resolving the violation. */ declare function buildSuggestedFix(envVarName: string, importChain: string[]): string; /** * Formats a potential violation as a human-readable multi-line terminal string. * * @param violation - The violation to format. * @returns A formatted string ready for terminal output. */ declare function formatViolationForTerminal(violation: Violation): string; /** * Formats a confirmed bundle leak as a human-readable multi-line terminal string. * This is the Phase 2 ground-truth error with precise source attribution from * sourcemap resolution. * * @param bundleLeak - The confirmed bundle leak to format. * @returns A formatted string ready for terminal output. */ declare function formatBundleLeakForTerminal(bundleLeak: BundleLeak): string; /** * Formats a violation as a browser overlay error payload compatible with * Vite's built-in error overlay WebSocket protocol. * * @param violation - The violation to format for the browser overlay. * @returns A payload object ready to send via `server.ws.send`. */ declare function formatViolationForOverlay(violation: Violation): { type: "error"; err: { message: string; stack: string; plugin: string; }; }; //#endregion export { buildSuggestedFix, formatBundleLeakForTerminal, formatViolationForOverlay, formatViolationForTerminal }; //# sourceMappingURL=reporter.d.ts.map