import React from 'react'; import { LoaderConfig } from '.'; declare type Props = { [key: string]: any; }; interface PartialNextContext { res?: any; AppTree?: NextComponentType; Component?: NextComponentType; ctx?: PartialNextContext; [key: string]: any; } declare type NextComponentType = React.ComponentType

& { getInitialProps?(context: C): IP | Promise; }; export default function appWithI18n(AppToTranslate: NextComponentType, config?: LoaderConfig): { (props: Props): JSX.Element; getInitialProps(appCtx: any): Promise<{ __lang: string; __namespaces?: Record | undefined; }>; }; export {};