export default function attachPropertiesToComponent>(component: C, properties: P): C & P;