UNPKG

@botonic/core

Version:

Runtime and APIs for Botonic bots: actions, context, messaging, and integration hooks used by the **current** framework line.

15 lines (14 loc) 473 B
import type { BotonicContext } from '../server'; import { Route } from './types'; export declare const NOT_FOUND_PATH = "404"; export declare class NoMatchingRouteError extends Error { botonicContext: BotonicContext; constructor(botonicContext: BotonicContext); } export declare class Router { private routes; constructor(routes: Route[]); processInput(botonicContext: BotonicContext): Route; private routeMatches; private matchesStringValue; }