declare function toggle(first: T[], second: T[], by?: (item: T) => any): T[]; export default toggle;