```ts
/**
 * Parses a semantic version string into its components.
 */
export