/** * This file contains code adapted from the React Spectrum project. * * Copyright (c) [year(s)], Adobe Inc. and other contributors. * All rights reserved. * * This source code is licensed under the Apache License, Version 2.0 * found in the LICENSE.txt file at the root directory of this source tree. */ type Props = Record; type PropsArg = Props | null | undefined; type TupleTypes = { [P in keyof T]: T[P]; } extends Record ? NullToObject : never; type NullToObject = T extends null | undefined ? object : T; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export default function mergeProps(...args: T): UnionToIntersection>; export {};