declare module 'swagger-ui-react' {
  import type { ComponentType } from 'react'

  type SwaggerRequest = {
    headers: Record<string, string>
    url?: string
    method?: string
  }

  export interface SwaggerUIProps {
    url?: string
    docExpansion?: string
    defaultModelsExpandDepth?: number
    deepLinking?: boolean
    tryItOutEnabled?: boolean
    persistAuthorization?: boolean
    requestInterceptor?: (req: SwaggerRequest) => SwaggerRequest
  }

  const SwaggerUI: ComponentType<SwaggerUIProps>
  export default SwaggerUI
}
