import { ParameterizedContext, DefaultState, DefaultContext, Next } from "koa"; export interface Options { whitelist?: (string | RegExp)[]; redirectRoute?: string; baseRoute?: string; staticlist?: (string | RegExp)[]; cookie?: string; } export declare const middleware: (options?: Options) => (ctx: ParameterizedContext, next: Next) => Promise;