import type { APIGatewayProxyEvent, Context } from 'aws-lambda'; import type { DbAuthResponse } from '@cedarjs/auth-dbauth-api'; import type { GetCurrentUser } from '@cedarjs/graphql-server'; import type { Middleware } from '@cedarjs/web/middleware'; export interface DbAuthMiddlewareOptions { cookieName?: string; dbAuthUrl?: string; dbAuthHandler: (req: Request | APIGatewayProxyEvent, context?: Context) => DbAuthResponse; getRoles?: (decoded: any) => string[]; getCurrentUser: GetCurrentUser; } export declare const initDbAuthMiddleware: ({ dbAuthHandler, getCurrentUser, getRoles, cookieName, dbAuthUrl, }: DbAuthMiddlewareOptions) => [Middleware, "*"]; export default initDbAuthMiddleware; //# sourceMappingURL=index.d.ts.map