//#region src/types/utils.d.ts /** * Function */ type Fn = (...params: Parameters) => Return; /** * Array, or not. */ type Arrayable = T | T[]; /** * Promise, or not. */ type Awaitable = T | PromiseLike; type Factory = T | (() => T); type AsyncFactory = T | (() => Awaitable); interface Ctor { new (...args: Params): Instance; } type Optional = T | undefined | null; type JsonPrimitive = string | number | boolean | null | undefined; type JsonObject = { [key: string | number]: JsonValue; }; type JsonArray = JsonValue[]; type JsonValue = JsonPrimitive | JsonObject | JsonArray; type PrimitiveType = JsonPrimitive | bigint | symbol; //#endregion //#region src/json/parse.d.ts type TransformJsonData = (data?: unknown) => T; interface ParesJsonOption { transform?: TransformJsonData; } declare function parseJson(jsonContent: string, opt: Required>): T; declare function parseJson(jsonContent: string, opt?: ParesJsonOption): T | undefined; //#endregion export { AsyncFactory as a, Factory as c, JsonObject as d, JsonPrimitive as f, PrimitiveType as h, Arrayable as i, Fn as l, Optional as m, TransformJsonData as n, Awaitable as o, JsonValue as p, parseJson as r, Ctor as s, ParesJsonOption as t, JsonArray as u }; //# sourceMappingURL=parse-ChhDUw7P.d.mts.map