import type { TransportMiddleware } from '../core/types.js'; import type { IDialect } from '@mostajs/orm'; /** * Build an API key middleware bound to a metadata dialect. * * @param getMetaDialect Returns the dialect that hosts api_keys + scopes * tables. May return null in dev mode (no DB). * @param options.openMode If true, requests without a key pass through. */ export declare function createApiKeyMiddleware(getMetaDialect: () => IDialect | null | undefined, options?: { openMode?: boolean; }): TransportMiddleware;