export default function localeMiddleware(localeObj: any, defaultLang?: string): ({ state, request }: { state: any; request: any; }) => void;