export declare function withEnv, B>(callback: (env: Env, ...args: A) => B): { withEnv(env: T): (...args: A) => B; (...args: A): B; };