import type { AnyFunc } from "./concepts.mjs"; import type { OmitKey } from "./object.mjs"; export declare type PrimitiveTypes = bigint | boolean | number | string | symbol | null | undefined; export declare type Nullish = null | undefined; export interface PrimitiveTypeMapping { string: string; number: number; boolean: boolean; undefined: undefined; null: null; symbol: symbol; bigint: bigint; } export interface TypeofMapping extends OmitKey { function: AnyFunc; object: object; } export declare type TypeOfLiterals = keyof TypeofMapping; export declare type TypeOfLiteralToBuiltInType = { [K in TypeOfLiterals]: T extends TypeofMapping[K] ? K : never; }[TypeOfLiterals]; export declare type LiteralToPrimitive = T extends null ? null : T extends undefined ? undefined : T extends number ? number : T extends string ? string : T extends boolean ? boolean : T extends symbol ? symbol : T extends bigint ? bigint : T; //# sourceMappingURL=common.d.mts.map