1 | import { type UnionFromClasses } from "../helpers/utils.js";
|
2 | import { type ClassType } from "../typings/index.js";
|
3 | import { type ResolveTypeOptions } from "./types.js";
|
4 | export type UnionTypeConfig<TClassTypes extends readonly ClassType[]> = {
|
5 | name: string;
|
6 | description?: string;
|
7 | types: () => TClassTypes;
|
8 | } & ResolveTypeOptions<UnionFromClasses<TClassTypes>>;
|
9 | export declare function createUnionType<T extends readonly ClassType[]>(config: UnionTypeConfig<T>): UnionFromClasses<T>;
|