File size: 660 Bytes
fea495a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import type { NextPageContext } from '../shared/lib/utils';
export type ErrorProps = {
    statusCode: number;
    hostname?: string;
    title?: string;
    withDarkMode?: boolean;
};
declare function _getInitialProps({ req, res, err, }: NextPageContext): Promise<ErrorProps> | ErrorProps;
/**
 * `Error` component used for handling errors.
 */
export default class Error<P = {}> extends React.Component<P & ErrorProps> {
    static displayName: string;
    static getInitialProps: typeof _getInitialProps;
    static origGetInitialProps: typeof _getInitialProps;
    render(): import("react/jsx-runtime").JSX.Element;
}
export {};