import { TgBotUpdateWebhookDesignDocument, TgBotUpdateDocument } from "../types"; export type { TgBotUpdateWebhookDesignDocument }; type CouchRequest = { body: string; headers: Record; method: string; query: Record; userCtx: { name: string | null; roles: string[]; }; }; type CouchResponse = [ TgBotUpdateDocument | null, { code: number; body: string; } | string ]; type UpdateFunction = (doc: TgBotUpdateDocument | null, req: CouchRequest) => CouchResponse; export declare const saveUpdate: UpdateFunction; export declare const saveUpdateString: string;