/** * This defines a mapping of one object from another. * - keys are the destination object keys, separated by dots for nested objects * - values are the source object keys, separated by dots for nested objects */ export type ObjectFromObjectMapping = Record; export type InvalidPathReason = 'empty' | 'unsafe'; /** * Split a dotted object path, rejecting empty and prototype-polluting segments with the caller's error. */ export declare function splitObjectPath(path: string, invalidPath: (reason: InvalidPathReason) => Error): string[]; export declare function isRecord(value: unknown): value is Record; /** * Read an own value at the path, or undefined when any segment is missing. */ export declare function getValueAtSegments(source: object, segments: readonly string[]): unknown; /** * Return the record that owns the path's leaf, creating missing parents. A non-record parent throws the caller's error. */ export declare function ensureParentRecord(destination: Record, segments: readonly string[], conflict: (segment: string) => Error): Record; /** * Create a new object from a source object, using a mapping of destination keys from source keys. */ export declare function mapObjectFromObject(source: object, mapping: ObjectFromObjectMapping): T; //# sourceMappingURL=objects.d.ts.map