export declare type GenericOperator = (next: T) => T; export interface Operator extends GenericOperator { (next: T, error?: (err: E) => any): F; }