export default function filter(fn: (i: T) => boolean): (generator: Generator) => Generator;