export declare const when: ((pred: (a: any) => boolean, fn: (a: any) => any, x: any) => any) & ((...args: any[]) => any);