aboutsummaryrefslogtreecommitdiff
path: root/core/api.ts
blob: 089108197bfe52ced467a6fb0f2e16591749b67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { ParseResult } from "../language/types.ts";

/**
 * @summary API interface
 *
 * This interface gets implemented by all API clients, so clients can be
 * swapped easily.
 */
export default abstract class API {
	/** @summary prepare API client */
	abstract prepare(): Promise<void>;

	/** @summary parse sentence */
	abstract parseSentence(input: string): Promise<ParseResult>;
};