basant307/AI_Governance_Project
048
1import * as js_tokens from 'js-tokens';2import { Token } from 'js-tokens';3 4interface StripLiteralOptions {5 /**6 * Will be called for each string literal. Return false to skip stripping.7 */8 filter?: (s: string) => boolean;9 /**10 * Fill the stripped literal with this character.11 * It must be a single character.12 *13 * @default ' '14 */15 fillChar?: string;16}17 18declare function stripLiteralJsTokens(code: string, options?: StripLiteralOptions): {19 result: string;20 tokens: Token[];21};22 23/**24 * Strip literal from code.25 */26declare function stripLiteral(code: string, options?: StripLiteralOptions): string;27/**28 * Strip literal from code, return more detailed information.29 */30declare function stripLiteralDetailed(code: string, options?: StripLiteralOptions): {31 result: string;32 tokens: js_tokens.Token[];33};34 35export { type StripLiteralOptions, stripLiteral, stripLiteralDetailed, stripLiteralJsTokens };36 