import { Hono } from "hono"; import { type ModuleImporter } from "../utils/dynamic-import.js"; export interface LoadedFunction { /** Endpoint name derived from filename (e.g., "send-invoice") */ name: string; /** The Hono sub-app to mount */ app: Hono; } /** * Auto-discover Hono route files from a directory. * * Each file should default-export a Hono app (or router). * The filename (without extension) becomes the mount path: * `functions/send-invoice.ts` → mounted at `/send-invoice` * * This mirrors how `loadCollectionsFromDirectory` works for collections. */ export declare function loadFunctionsFromDirectory(directory: string, importModule?: ModuleImporter): Promise;