import type { Authenticatable } from '@atlex/auth'; import type { Application } from '@atlex/core'; import type { RequestHandler } from 'express'; /** * Express middleware: reads {@link TEST_AUTH_HEADER} and logs the resolved user into the default guard. * Pair with {@link import("../TestClient.js").TestClient.actingAs}. * * @param app - Application container (resolves `auth`). * @param resolveUser - Load an {@link Authenticatable} by primary key string. * @returns Express middleware. */ export declare function createTestingAuthMiddleware(app: Application, resolveUser: (id: string) => Promise): RequestHandler; /** * Header name used by {@link createTestingAuthMiddleware} and {@link import("../TestClient.js").TestClient.actingAs}. */ export declare const TEST_AUTH_HEADER = "x-atlex-test-auth-id"; //# sourceMappingURL=testingAuthMiddleware.d.ts.map