///
import type { FC, PropsWithChildren } from 'react'
declare global {
export type NextErrorProps = {
reset(): void
error: Error
}
export type NextPageParams
= PropsWithChildren<
{
params: P
} & Props
>
export type Component
= FC
export type ComponentType = {
className?: string
} & PropsWithChildren &
P
// TODO should remove in next TypeScript version
interface Document {
startViewTransition(callback?: () => void | Promise): ViewTransition
}
interface ViewTransition {
finished: Promise
ready: Promise
updateCallbackDone: () => void
skipTransition(): void
}
}
declare module 'react' {
export interface AriaAttributes {
'data-hide-print'?: boolean
'data-event'?: string
'data-testid'?: string
}
}