import { Hono } from "hono"; import { HonoEnv } from "../api/types"; import { BackendCollectionRegistry } from "../collections/BackendCollectionRegistry"; import { DataDriver } from "@rebasepro/types"; /** * Create Hono routes for entity history. * Mounted at `{basePath}/data/:slug/:id/history`. */ export interface HistoryService { fetchHistory(tableName: string, id: string, options: { limit: number; offset: number; }): Promise<{ data: Record[]; total: number; }>; fetchHistoryEntry(historyId: string): Promise | null>; } export declare function createHistoryRoutes(params: { historyService: HistoryService; registry: BackendCollectionRegistry; driver: DataDriver; }): Hono;