How can i import all types from a file without changing it, like the test.ts file below, and access them via the bracket syntax?
test.ts
export type TEST1 = 'test1'
export type TEST2 = 'test2'
export type TEST3 = 'test3'
export type TEST4 = 'test4'
index.ts
import type * as T from './test'
const a: T.TEST1 = 'test1' // what i can do
type B = 'TEST2' | 'TEST3' // subset of available types in test.ts
const b: T[B] = 'test2' // what i want to do