import { Promisable } from 'type-fest'; /** A simple parser interface. */ export interface Parser { /** If this parser supports the given node. */ supports(type: T): Promisable; /** Parses the given node into de desired result. */ parse(type: T, ...args: Args): Promisable; }