1 | import React from 'react';
|
2 | import { NextPageContext } from '../next-server/lib/utils';
|
3 | export declare type ErrorProps = {
|
4 | statusCode: number;
|
5 | title?: string;
|
6 | };
|
7 | declare function _getInitialProps({ res, err, }: NextPageContext): Promise<ErrorProps> | ErrorProps;
|
8 |
|
9 |
|
10 |
|
11 | export default class Error<P = {}> extends React.Component<P & ErrorProps> {
|
12 | static displayName: string;
|
13 | static getInitialProps: typeof _getInitialProps;
|
14 | static origGetInitialProps: typeof _getInitialProps;
|
15 | render(): JSX.Element;
|
16 | }
|
17 | export {};
|