d38d8eeeb6310eb0e21988a3830a6fddf4305968fb5da8ea69cae79271ecc1475de8f8aa974e1332d7d367806e8f213b986597b676bdbe322b9c15a5795d18 689 B

12345678910111213141516171819202122
  1. /**
  2. * Converts a [TOML](https://toml.io/) string into an object.
  3. *
  4. * @NOTE Comments and indentation is not preserved after parsing.
  5. *
  6. * @template T The type of the return value.
  7. * @param text The TOML string to parse.
  8. * @returns The JavaScript value converted from the TOML string.
  9. */
  10. declare function parseTOML<T = unknown>(text: string): T;
  11. /**
  12. * Converts a JavaScript value to a [TOML](https://toml.io/) string.
  13. *
  14. * @NOTE Comments and indentation is not preserved in the output.
  15. *
  16. * @param value
  17. * @param options
  18. * @returns The YAML string converted from the JavaScript value.
  19. */
  20. declare function stringifyTOML(value: any): string;
  21. export { parseTOML, stringifyTOML };