import { Fn, FromSchema, IntersectionFn, Pipe, SetOptionalFn } from "../types/Fn"; import { Hoc } from "../types/Hoc"; interface WithSpreadFn extends Fn { return: Pipe> ]>, SetOptionalFn ]>; } interface WithSpreadHoc { (propName: PropName): Hoc<[WithSpreadFn]>; } /** * Start receiving an object and spread all properties to Component * * @experimental It uses the same mechanism as {@link withDefaults} but it could also have the same mechanism as {@link withOverrides} * * @example * function Profile({ name, age, city }: {...}) { * ... * } * const NewProfile = withSpread<"profile", "name" | "age" | "city">("profile")(Profile) * * // is equivalent to * */ export declare const withSpread: WithSpreadHoc; export {}; //# sourceMappingURL=withSpread.d.ts.map