index.d.ts 810 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Splits a CSS declaration value (shorthand) using provided separators
  3. * as the delimiters.
  4. */
  5. export declare function split(
  6. /**
  7. * A CSS declaration value (shorthand).
  8. */
  9. value: string,
  10. /**
  11. * Any number of separator characters used for splitting.
  12. */
  13. separators: string[], {last}?: {
  14. last?: boolean;
  15. }): string[];
  16. /**
  17. * Splits a CSS declaration value (shorthand) using whitespace characters
  18. * as the delimiters.
  19. */
  20. export declare function splitBySpaces(
  21. /**
  22. * A CSS declaration value (shorthand).
  23. */
  24. value: string): string[];
  25. /**
  26. * Splits a CSS declaration value (shorthand) using commas as the delimiters.
  27. */
  28. export declare function splitByCommas(
  29. /**
  30. * A CSS declaration value (shorthand).
  31. */
  32. value: string): string[];