import type { Readable, Writable } from 'node:stream'; import { type ConariumDeps } from './server.js'; import type { ConariumConfig } from './types.js'; import type { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { DemoConnector } from './connectors/demo.js'; export declare const DEMO_BANNER = "[conarium] demo mode: sample rows, not a database"; export declare const DEMO_PRODUCTION_REFUSAL = "[conarium] --demo refuses to start when NODE_ENV=production"; export declare class DemoModeRefused extends Error { readonly exitCode = 1; constructor(message?: string); } export declare function parseCliFlags(argv?: string[]): { demo: boolean; keep: boolean; }; export declare function demoStartBlocker(env?: NodeJS.ProcessEnv): string | null; /** In-memory config for `--demo`. Never read from a file. */ export declare function buildDemoConfig(dir: string): ConariumConfig; export declare function demoVerifyCommand(receiptsPath: string, publicKeyPath: string): string; export interface DemoSession { dir: string; keep: boolean; publicKeyPath: string; receiptsPath: string; auditPath: string; verifyCommand: string; deps: ConariumDeps; server: Server; connector: DemoConnector; stop(): Promise; } /** * Build the demo process: ephemeral dir, one-shot Ed25519 pair, real * `bootDeps` / `buildServer`. Does not attach stdio and does not call * `announceUpdate`. */ export declare function bootDemo(opts?: { keep?: boolean; }): Promise; export declare function attachStdio(server: Server, stdin?: Readable, stdout?: Writable): Promise; export declare function main(argv?: string[]): Promise; //# sourceMappingURL=cli.d.ts.map