import { Context, ContextKey, ContextValue } from "../context/context.types"; import { ExecuteCommand } from "../git-command/command.types"; export declare type IsContextRule = (key: ContextKey, expectedValue: ContextValue) => DefinedRule; export declare type AmongContextRule = (key: ContextKey) => (values: ContextValue[]) => (context: Context) => boolean; export declare type Rule = IsContextRule | AmongContextRule; export declare type DefinedRule = (excuteGitCommand: ExecuteCommand) => Promise; export declare type RuleCombinator = (...ruleResults: Rule[]) => (context: Context) => boolean;