版博士V2.0程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

Base64.d.ts 885 B

1234567891011121314151617181920212223
  1. /**
  2. * Base64 encoding and decoding.
  3. */
  4. export default class Base64 {
  5. /**
  6. * Creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data).
  7. *
  8. * @see https://developer.mozilla.org/en-US/docs/Web/API/btoa
  9. * @param data Binay data.
  10. * @returns Base64-encoded string.
  11. */
  12. static btoa(data: unknown): string;
  13. /**
  14. * Decodes a string of data which has been encoded using Base64 encoding.
  15. *
  16. * @see https://developer.mozilla.org/en-US/docs/Web/API/atob
  17. * @see https://infra.spec.whatwg.org/#forgiving-base64-encode.
  18. * @see Https://html.spec.whatwg.org/multipage/webappapis.html#btoa.
  19. * @param data Binay string.
  20. * @returns An ASCII string containing decoded data from encodedData.
  21. */
  22. static atob(data: unknown): string;
  23. }