type Props = Record; type PropsArg = Props | null | undefined; type TupleTypes = { [P in keyof T]: T[P]; } extends { [key: number]: infer V; } ? NullToObject : never; type NullToObject = T extends null | undefined ? {} : T; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; /** * Given a list of prop objects, merges them into a single object. * - Automatically composes event handlers (e.g. `onclick`, `oninput`, etc.) * - Chains regular functions with the same name so they are called in order * - Merges class strings with `clsx` * - Merges style objects and converts them to strings * - Handles a bug with Svelte where setting the `hidden` attribute to `false` doesn't remove it * - Overrides other values with the last one */ export declare function mergeProps(...args: T): UnionToIntersection> & { style?: string; }; export {};