/** Server-only launcher for the bundled DocsMint backend runtime. */ export type DocsmintBackendEnvironment = Readonly>; export type LaunchDocsmintBackendOptions = Readonly<{ cwd?: string; env?: DocsmintBackendEnvironment; healthUrl?: string; startupTimeoutMs?: number; pollIntervalMs?: number; signal?: AbortSignal; }>; export type DocsmintBackendProcess = Readonly<{ pid: number; exited: Promise; kill(signal: "SIGTERM" | "SIGKILL"): void; }>; export type DocsmintBackendSpawnSpec = Readonly<{ command: readonly string[]; cwd?: string; env: Readonly>; }>; export type DocsmintBackendLauncherRuntime = Readonly<{ executable: string; launcherModuleUrl?: string | URL; spawn(spec: DocsmintBackendSpawnSpec): DocsmintBackendProcess; fetch(input: string, init?: RequestInit): Promise; now?: () => number; sleep?: (milliseconds: number) => Promise; }>; export type DocsmintBackendHandle = Readonly<{ pid: number; ready: Promise; exited: Promise; stop(): Promise; }>; export type DocsmintBackendLauncher = Readonly<{ launch(options?: LaunchDocsmintBackendOptions): DocsmintBackendHandle; }>; import type { AttachmentStorageQuotaAdmission } from "./storage-quota"; export type { AttachmentStorageQuotaAdmission } from "./storage-quota"; export type DocsMintRuntimeOptions = Readonly<{ attachmentStorageQuotaAdmission?: AttachmentStorageQuotaAdmission; }>; export type DocsMintInProcessHandle = Readonly<{ ready: Promise; stop(): Promise; }>; /** * Starts the bundled OSS API in this Bun process. Runtime options are frozen * and installed before importing the backend graph, so routes/workers cannot * observe an unconfigured tenancy-enabled process. */ export declare function launchDocsMintApi(options?: DocsMintRuntimeOptions): Promise; export declare function resolveDocsmintBackendEntrypoint(launcherModuleUrl?: string | URL): URL; export declare function createDocsmintBackendLauncher(runtime: DocsmintBackendLauncherRuntime): DocsmintBackendLauncher; export declare function launchDocsmintBackend(options?: LaunchDocsmintBackendOptions): DocsmintBackendHandle;