import * as Bunyan from 'bunyan'; import { Request as ExpressRequest } from 'express'; import { IdentifiedBillBase } from '../types'; import { StringTo } from '../helper-types'; export declare type PrincipalFnRet = TIdentifiedBill | null | false; export declare type PrincipalFn = (headers: StringTo | undefined>, cookies: StringTo, request: ExpressRequest) => PrincipalFnRet | Promise>; export interface HttpAuthnOptions { principalFn: PrincipalFn; anonymousScopes: ReadonlyArray; logger?: Bunyan; }