import { Middleware, DefaultContext, Next } from "koa"; export declare const MISSING_INSTITUTION_MESSAGE = "No institution_uuid found in token!"; export declare const MISSING_USER_MESSAGE = "No user uuid found in token!"; export declare const MISSING_ENTITY_MESSAGE = "No user entity_uuids found in token!"; export declare const MISSING_AUTHORIZATION = "No authorization header provided!"; export declare function sessionMiddleware(keyStringOrGetter: string | ((ctx: DefaultContext) => string) | ((ctx: DefaultContext) => Promise), getAuthorization?: (ctx: DefaultContext) => any): Middleware; export declare function adminOnlyInstitutionSelectorMiddleware(): (ctx: DefaultContext, next: Next) => Promise; export declare function institutionGuardMiddleware(getResourceInstitutionUuid?: (ctx: DefaultContext) => any): Middleware;