/** Kitten Routes Copyright ⓒ 2021-present, Aral Balkan Small Technology Foundation License: AGPL version 3.0. */ import Files, { FileEventDetails } from './Files.ts'; import StaticRoute from './routes/StaticRoute.ts'; import type { LazilyLoadedRoute } from './types/index.ts'; export type RouteDictionary = Record; export default class Routes { routes: Record; basePath: string; files: Files | undefined; static isBeingInstantiatedByFactoryMethod: boolean; /** Returns the routes for the passed base path. (The default base path is the primary place being served, as kept in the `basePath` environment variable.) */ static getRoutes(basePath?: string): Promise>; /** Private constructor. */ constructor(basePath: string); /** Creates and returns the routes at the base path. */ initialise(): Promise>; /** Handle file change events. */ handleFileChange(event: CustomEvent): void; /** Creates routes of a certain category type. */ createRoutesOfCategoryType(categoryType: string): void; createRoutes(): void; }