import * as React from "react"; import * as http from "http"; export interface Context { err?: Error; req: http.IncomingMessage; res: http.ServerResponse; pathname: string; query?: { [key: string]: | boolean | boolean[] | number | number[] | string | string[]; }; asPath: string; renderPage( enhancer?: (page: React.Component) => React.ComponentType ): { html?: string; head: Array>; errorHtml: string; }; } export interface DocumentProps { __NEXT_DATA__?: any; dev?: boolean; chunks?: string[]; html?: string; head?: Array>; errorHtml?: string; styles?: Array>; [key: string]: any; } export class Head extends React.Component {} export class Main extends React.Component {} export class NextScript extends React.Component {} export default class extends React.Component { static getInitialProps(ctx: Context): DocumentProps; }