/** * The web app's command-line provider: it parses the `dsh --profile web` flag * family (`--host`, `--port`, `--trusted-host`) and its `--help` * text, then provides the immutable values as {@link WEB_STARTUP_SERVICE}. * Ordinary rows inject that service before reading it from lazy config. * @module @preambient/dsh-web-app/startup */ import type { Context } from '@deepseek-ai/cordis'; /** Stable Cordis plugin name. */ export declare const name = "web-startup"; /** Services required before the flags can be resolved. */ export declare const inject: string[]; /** Service provided by this ordinary plugin and injected by flag-configured rows. */ export declare const WEB_STARTUP_SERVICE = "webStartup"; /** What the web rows read from {@link WEB_STARTUP_SERVICE}. */ export interface WebStartupValues { /** `--host`, absent when the invocation did not name one. */ host?: string; /** `--port`, absent when the invocation did not name one. */ port?: number; /** Explicit `--trusted-host` authorities, in argument order. */ trustedHosts: string[]; } /** * Parse and provide the Web invocation as an ordinary Cordis service. The * command's action publishes the flags this invocation named; `--host 0.0.0.0`, * an unsupported bind host, or a non-numeric `--port` is a usage error, so on * rejection (and on `--help`) nothing is provided. * @param ctx - plugin context carrying the command line. */ export declare function apply(ctx: Context): void; //# sourceMappingURL=startup.d.ts.map