import type { EventBus } from "@voyant-travel/core"; import type { PostgresJsDatabase } from "drizzle-orm/postgres-js"; import type { Context } from "hono"; import { z } from "zod"; export type Env = { Variables: { db: PostgresJsDatabase; userId?: string; eventBus?: EventBus; }; }; export declare const batchIdsSchema: z.ZodObject<{ ids: z.ZodArray; }, z.core.$strip>; export declare const createBatchUpdateSchema: (patchSchema: TPatch) => z.ZodObject<{ ids: z.ZodArray; patch: TPatch; }, z.core.$strip>; export declare function handleBatchUpdate({ db, ids, patch, update, }: { db: PostgresJsDatabase; ids: string[]; patch: TPatch; update: (db: PostgresJsDatabase, id: string, patch: TPatch) => Promise; }): Promise<{ data: NonNullable>[]; total: number; succeeded: number; failed: { id: string; error: string; }[]; }>; export declare function handleBatchDelete({ db, ids, remove, }: { db: PostgresJsDatabase; ids: string[]; remove: (db: PostgresJsDatabase, id: string) => Promise<{ id: string; } | null>; }): Promise<{ deletedIds: string[]; total: number; succeeded: number; failed: { id: string; error: string; }[]; }>; export declare function notFound(c: Context, message: string): Response & import("hono").TypedResponse<{ error: string; }, 404, "json">;