///
import { ChestnutIdentity } from './oauth-model';
import { Request, Response } from '../middleware';
import { NextFunction } from 'express';
export declare const NOT_AUTHORIZED = "NOT_AUTHORIZED";
export declare function createAuthorizationHandler(identity: ChestnutIdentity, configuration: any): {
ensureAuthorized: (request: Request, response: Response, next: NextFunction) => Promise;
};