import type { IncomingMessage, ServerResponse } from 'node:http'; export declare const name = "dock-markdown"; /** * Services required before mounting. * * The declared-authority list these routes fence with used to be injected here * as `webRuntime`. DSH renamed that service to `webStartup` in 0.2.1, so the * list is resolved lazily through `declaredTrustedHosts` instead: a renamed * service can no longer park this plugin, and older hosts still mount. */ export declare const inject: string[]; type WbErrorCode = 'bad-request' | 'forbidden' | 'fs-error' | 'not-found' | 'internal' | 'too-large'; export declare class WbError extends Error { readonly code: WbErrorCode; readonly status: number; constructor(code: WbErrorCode, message: string, status?: number); } interface WbContext { webServer: { register(options: { kind: 'prefix'; path: string; handler: (req: IncomingMessage, res: ServerResponse) => void | Promise; }): () => void; }; sessions: { get(sessionId: string): { header: { cwd?: string; }; } | undefined; }; /** * Read a service without declaring a hard dependency on it. * * Used for the optional `webStartup` / `webRuntime` / `connection` services: * a host that provides none of them keeps the loopback-only fence instead of * failing to mount. */ get?(name: string): unknown; effect(fn: () => void | (() => void), label?: string): void; } export declare function apply(ctx: WbContext): void; export {};