/** * @ws-kit/core/plugin — Plugin authoring helpers and types * * Use this import path when writing plugins: * ```typescript * import { definePlugin } from "@ws-kit/core/plugin"; * * export const withMyFeature = definePlugin( * (router) => ({ ... }), * ); * ``` * * The core exports: * - definePlugin() — Helper for type-safe plugin definition * - Plugin — Type for plugin functions (rarely used directly) * - Router — Re-exported for convenience * * Optional semantic layer (for advanced type documentation): * - RouterCapabilityAPIs — Registry of capability names to APIs * - RouterWithCapabilities — Type alias for routers with specific capabilities * * @example Using the semantic layer: * ```typescript * import type { RouterWithCapabilities } from "@ws-kit/core/plugin"; * * type AppRouter = RouterWithCapabilities; * ``` */ export { definePlugin } from "./define.js"; export type { Plugin } from "../core/router.js"; export type { Router } from "../core/router.js"; export type { RouterCapabilityAPIs, RouterWithCapabilities, } from "./capabilities.js"; //# sourceMappingURL=index.d.ts.map