escaper.d.ts 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*!
  2. * Escaper
  3. * https://github.com/kobezzza/Escaper
  4. *
  5. * Released under the MIT license
  6. * https://github.com/kobezzza/Escaper/blob/master/LICENSE
  7. */
  8. declare const Escaper: {
  9. VERSION: any[];
  10. cache: Record<string, string>;
  11. content: string[];
  12. snakeskinRgxp: RegExp | null;
  13. symbols: string | null;
  14. paste(str: string, content?: string[]);
  15. replace(str: string, withComments?: boolean, content?: string[], snakeskin?: boolean);
  16. replace(str: string, params: {
  17. '@label'?: string,
  18. '@all'?: boolean,
  19. '@comments'?: boolean,
  20. '@strings'?: boolean,
  21. '@literals'?: boolean,
  22. '`'?: boolean,
  23. "'"?: boolean,
  24. '"'?: boolean,
  25. '/'?: boolean,
  26. '//'?: boolean,
  27. '//*'?: boolean,
  28. '//!'?: boolean,
  29. '//#'?: boolean,
  30. '//@'?: boolean,
  31. '//$'?: boolean,
  32. '/*'?: boolean,
  33. '/**'?: boolean,
  34. '/*!'?: boolean,
  35. '/*#'?: boolean,
  36. '/*@'?: boolean,
  37. '/*$'?: boolean
  38. }, content?: string[], snakeskin?: boolean);
  39. };
  40. declare module 'escaper' {
  41. export = Escaper;
  42. }