import { EnsureNotUnion, IsUnion } from "./type.utils-D2zk0NEY.cjs"; //#region src/shared/composition.utils.d.ts declare const extractProp: (k: K) => (actual: T) => T[K]; declare const extractProps: (...keys: K) => (obj: T) => { [key in K[number]]: T[key] }; declare const extractId: (withId: T) => T["id"]; interface Serializable { serialize(): R; } declare const toSerialized: (serializable: Serializable) => Serialized; type WithKey = IsUnion extends true ? never : { [P in K]: T }; declare const nestWithKey: (key: EnsureNotUnion) => (obj: T) => WithKey; //#endregion export { extractId, extractProp, extractProps, nestWithKey, toSerialized }; //# sourceMappingURL=composition.utils-XC9f6zOg.d.cts.map