/** * Use this to get properly typed {...rest} when used with generics. ( React HoC ) * * @param props * @param pickProps * * @example * * ```tsx * type InjectedProps = { enableLog: boolean } * type Config = {...} * * const withLog = (config: Config) => (WrappedComponent: ComponentType) => { * * type Props = OriginalProps & InjectedProps * * return class WithLog extends Component { * render(){ * const {enableLog, rest} = genRest(this.props, ['enableLog']) * return * } * } * } * ``` * */ export declare const pickWithRest: >; }>(props?: object, pickProps?: (keyof PickedProps)[]) => PickedProps & Rest; //# sourceMappingURL=generic-rest.d.ts.map