import { Hono } from "hono"; import type { DocumentCollection } from "../core/collection.js"; import type { Document } from "../core/document.js"; import type { LLMProviderConfig } from "../types.js"; export interface ServeOptions { host?: string; port?: number; llm?: LLMProviderConfig; /** * Bearer token required in the `Authorization` header. * Strongly recommended when exposing the server beyond localhost. */ bearerToken?: string; /** * If true, log every incoming request (default: false). */ requestLogging?: boolean; } export interface ServerHandle { close: () => Promise; url: string; } export type ServerTarget = Document | DocumentCollection; export declare function createServer(target: ServerTarget, options: ServeOptions): Promise; export declare function buildApp(target: ServerTarget, options: ServeOptions): Hono;