export type InputCommitTiming = 'press-enter' | 'blur';

export type InputCommitContext = {
  nextValue: string;
  previousValue: string;
  timing: InputCommitTiming;
};

export type InputCommitPlugin = (context: InputCommitContext) => boolean;

export type InputValidator = (context: InputCommitContext) => boolean;
