import { Context, Next } from 'koa'; export interface CorsOptions { origin?: string | string[] | ((ctx: Context) => string); exposeHeaders?: string[]; maxAge?: number; credentials?: boolean; allowMethods?: string[]; allowHeaders?: string[]; } declare function crossOrigin(options?: CorsOptions): (ctx: Context, next: Next) => Promise; export default crossOrigin;