import { StriclineContext } from "./context.mjs"; import { BaseArgs, BaseFlags, Command, CommandBuilderArguments, CommandContext, CommandFunction, RouteMap, RouteMapBuilderArguments } from "@stricli/core"; //#region src/routes.d.ts type RouterOpts = Omit, "routes">; type CommandLoader = () => Promise; interface CommandModule, ARGS extends BaseArgs = [], CONTEXT extends CommandContext = StriclineContext> { default: Omit, "func" | "loader">; impl: () => Promise<{ default: CommandFunction; }>; } declare function buildRoutes(commands: { [k: string]: CommandLoader; }, routers?: { [k: string]: RouterOpts; }, prefix?: string): Promise | RouteMap>>; //#endregion export { CommandLoader, CommandModule, RouterOpts, buildRoutes };