import Koa from "koa"; import { ProductFile } from "../file-types"; import { ApiTables } from "./types"; export interface GetFilesDir { (databaseId: string): string; } export interface GetBaseUrl { (ctx: Koa.Context, databaseId: string): string; } export declare function createClientRestMiddleware(getFilesDir: GetFilesDir, getBaseUrl: GetBaseUrl, prefix?: string): Koa.Middleware; export declare function getApiProductTables(filesDir: string, baseUrl: string, productFile: ProductFile, legacyTableList: ReadonlyArray): Promise; export declare function readJsonFile(filesDir: string, fileName: string): Promise; //# sourceMappingURL=middleware.d.ts.map