import type { Server } from "node:http"; import express, { type NextFunction, type Request, type Response } from "express"; import { z } from "zod"; export interface FileData { mimeType: string; type: string; data: string; } export interface ImageData { base64: string; } declare const startServerOptionsSchema: z.ZodObject<{ port: z.ZodNumber; dbUrl: z.ZodString; traceTreeMiddleware: z.ZodOptional void, z.ZodTypeDef, (req: Request, res: Response, next: NextFunction) => void>, "many">>; options: z.ZodOptional, "many">], z.ZodUnknown>, z.ZodPromise, "many">>>>; formatOutputImages: z.ZodOptional, "many">], z.ZodUnknown>, z.ZodPromise, "many">>>>; }, "strip", z.ZodTypeAny, { formatOutputFiles?: ((args_0: { data: string; type: string; mimeType: string; }[], ...args: unknown[]) => Promise<{ data: string; type: string; mimeType: string; }[]>) | undefined; formatOutputImages?: ((args_0: { base64: string; }[], ...args: unknown[]) => Promise<{ base64: string; }[]>) | undefined; }, { formatOutputFiles?: ((args_0: { data: string; type: string; mimeType: string; }[], ...args: unknown[]) => Promise<{ data: string; type: string; mimeType: string; }[]>) | undefined; formatOutputImages?: ((args_0: { base64: string; }[], ...args: unknown[]) => Promise<{ base64: string; }[]>) | undefined; }>>; }, "strip", z.ZodTypeAny, { port: number; dbUrl: string; options?: { formatOutputFiles?: ((args_0: { data: string; type: string; mimeType: string; }[], ...args: unknown[]) => Promise<{ data: string; type: string; mimeType: string; }[]>) | undefined; formatOutputImages?: ((args_0: { base64: string; }[], ...args: unknown[]) => Promise<{ base64: string; }[]>) | undefined; } | undefined; traceTreeMiddleware?: ((req: Request, res: Response, next: NextFunction) => void)[] | undefined; }, { port: number; dbUrl: string; options?: { formatOutputFiles?: ((args_0: { data: string; type: string; mimeType: string; }[], ...args: unknown[]) => Promise<{ data: string; type: string; mimeType: string; }[]>) | undefined; formatOutputImages?: ((args_0: { base64: string; }[], ...args: unknown[]) => Promise<{ base64: string; }[]>) | undefined; } | undefined; traceTreeMiddleware?: ((req: Request, res: Response, next: NextFunction) => void)[] | undefined; }>; export type StartServerOptions = z.infer; export declare function startServer(options: StartServerOptions): Promise<{ app: express.Express; server: Server; }>; export {};