import Router from 'koa-router'; import type { Auth } from './auth'; import type { Server, Game, StorageAPI } from '../types'; export declare const createRouter: ({ db, auth, games, uuid, }: { auth: Auth; games: Game[]; uuid?: () => string; db: StorageAPI.Sync | StorageAPI.Async; }) => Router; export declare const configureApp: (app: Server.App, router: Router, origins: string | boolean | RegExp | (string | boolean | RegExp)[] | ((requestOrigin: string, callback: (err: Error, origin?: string | boolean | RegExp | (string | boolean | RegExp)[]) => void) => void)) => void;