/** @module Interface arborium:grammar/plugin@0.1.0 **/
export function languageId(): string;
export function injectionLanguages(): Array<string>;
export function createSession(): Session;
export function freeSession(session: Session): void;
export function setText(session: Session, text: string): void;
export function applyEdit(session: Session, text: string, edit: Edit): void;
export function parse(session: Session): ParseResult;
export function cancel(session: Session): void;
export type Span = import('./arborium-grammar-types.js').Span;
export type Injection = import('./arborium-grammar-types.js').Injection;
export type ParseResult = import('./arborium-grammar-types.js').ParseResult;
export type Edit = import('./arborium-grammar-types.js').Edit;
export type ParseError = import('./arborium-grammar-types.js').ParseError;
export type Session = number;
