/** * Host 与 Edge 共用的 REST 路由(Fetch RouteTable)。 * Console 连接常用:/entries、/api/system/status、/api/stats、/api/plugins、/api/bots、/api/config、/api/schemas 等。 */ import { type Plugin } from "zhin.js"; import { type RouteTable } from "@zhin.js/http-host"; export type EntriesResponseBody = { entries: unknown[]; runtimeEnvHint: "development" | "production"; }; /** GET /entries — Remote Console 插件发现(Edge 可为空列表) */ export declare function registerEntriesRoute(table: RouteTable, options?: { getBody?: () => EntriesResponseBody; }): void; /** 不含 marketplace / logs(仍由 Host 插件单独注册) */ export declare function registerHostRestRoutes(table: RouteTable, base: string, getRoot: () => Plugin): void; //# sourceMappingURL=host-rest-api.d.ts.map