import type { FastifyInstance } from 'fastify'; import type { DB } from '../storage/db.js'; import type { EmbedProvider } from '../contracts/index.js'; import { type Config } from '../config/config.js'; import type { HealthState } from './health-state.js'; export interface AppOpts { db: DB; token: string; /** Embed provider injected for search + remember routes. Defaults to fake/noop. */ embed?: EmbedProvider; /** Server config — used by dashboard route for budget cap display. Defaults to defaultConfig(). */ config?: Config; /** Live daemon health snapshot (degraded-start, D3). Optional — /health * omits the status/embed fields when absent (e.g. bare test apps). */ healthState?: HealthState; } export declare function buildApp(opts: AppOpts): Promise;