import Rule from 'promake/Rule' type Env = { [name: string]: string | undefined } type Options = { getEnv?: () => Env | Promise } export function envRuleRecipe( target: string, vars: Array, options?: Options ): (rule?: Rule) => Promise type RuleFn = ( target: string, recipe: () => Promise, options?: { runAtLeastOnce?: boolean } ) => Rule export const envRule: ( rule: RuleFn ) => (target: string, vars: Array, options?: Options) => Rule