import { AppResult } from "./result-CmDVifTD.cjs"; //#region src/shared/type.utils.d.ts type EmptyObject = Record; type UnsafeCast = T extends U ? T : U; declare const unsafeCast: (val: T) => U; type PartialBy = Omit & Partial>; type Omitt = Pick>; type Constructable = new (...args: unknown[]) => T; type ExtractAppResultType = U extends AppResult ? X : never; type ArrType = T extends Array ? R : never; type IterType = T extends { [Symbol.iterator](): infer I; } ? I : never; type InferAppResult Promise>> = ExtractAppResultType>>; type GetKeysWithSpecificTypeValue, ValType> = { [K in keyof T]: T[K] extends ValType ? K : never }[keyof T]; type RequireAtLeastOne = { [K in keyof T]-?: Required> & Partial>> }[keyof T]; /** * Is used to ensure that all cases are handled in a switch statement. Throws error on runtime * @internal * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html#exhaustiveness-checking * * @param x {never} - This is a type that should never be used. It is used to ensure that the switch statement is exhaustive. */ declare const assertUnreachable: (x: never) => never; /** * Is used to ensure that all cases are handled in a switch statement. Passes through the value on runtime * @internal * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html#exhaustiveness-checking * * @param x {never} - This is a type that should never be used. It is used to ensure that the switch statement is exhaustive. */ declare const assertUnreachablePassthrough: (x: never) => never; type AppendToTuple = T extends [...infer Rest, infer L] ? [...Rest, L, U] : [T, U]; type IsUnion = (T extends any ? U extends T ? false : true : never) extends false ? false : true; type EnsureNotUnion = IsUnion extends true ? never : T; //#endregion //# sourceMappingURL=type.utils.d.ts.map export { AppendToTuple, ArrType, Constructable, EmptyObject, EnsureNotUnion, ExtractAppResultType, GetKeysWithSpecificTypeValue, InferAppResult, IsUnion, IterType, Omitt, PartialBy, RequireAtLeastOne, UnsafeCast, assertUnreachable, assertUnreachablePassthrough, unsafeCast }; //# sourceMappingURL=type.utils-D2zk0NEY.d.cts.map