import type { RequireContext } from "../i18n/index.js";
interface AppContext {
  ctx: {
    query: {
      userLanguage?: string;
    };
  };
  Component: {
    getInitialProps?: (ctx: AppContext['ctx']) => Promise<Record<string, unknown>>;
  };
}
/**
 * Factory to create MyApp.getInitialProps.
 * Follows the same pattern as `@mui/internal-core-docs/Document`'s `createGetInitialProps`.
 *
 * @param options.translationsContext - A webpack require.context pointing at translation JSON files.
 *   e.g. `require.context('docs/translations', false, /\.\/translations.*\.json$/)`
 */
export declare function createGetInitialProps(options: {
  translationsContext: RequireContext;
}): ({
  ctx,
  Component
}: AppContext) => Promise<{
  pageProps: {
    userLanguage: string;
    translations: import("../i18n/index.js").Translations;
  };
}>;
export {};