export default function ui(document: any, { pathRoot, skipPaths, UIAssetsPath, sendConfig }?: { pathRoot?: string; skipPaths?: any[]; UIAssetsPath?: any; sendConfig?: { maxage: number; }; }): (context: any, next: any) => Promise;