/** * Drop AI fix snippets that can't be pasted in. * * Half the value of a code sample is the false confidence that you can paste * it. When the model echoes the input redaction placeholders (`[REDACTED]`) * or invents references to constructs that don't exist in the user's stack * (`${EncryptionKey}`, ``, `REPLACE_ME`), the snippet is worse * than no snippet — the developer is better served by the prose * recommendation. This blanks the snippet (keeping the prose) when it contains * such markers, so we degrade to prose-by-default rather than shipping * uncompilable code. */ /** * Returns the snippet unchanged when it is safe to show, or an empty string * when it contains placeholders / redaction tokens that make it uncompilable. */ export declare const sanitizeCodeSnippet: (snippet: string | undefined) => string;