import { NodeConfig } from '@bugsnag/node'; import { FastifyRequest } from 'fastify'; type PluginOptions = NodeConfig; interface RequestMetadata { body?: FastifyRequest['body']; clientIp: string; headers: Record; httpMethod: string; params?: unknown; path?: string; query?: unknown; referer?: string; url: string; } interface RequestInfoWithMetadata { metadata: RequestMetadata; request: Pick; } export type { PluginOptions, RequestInfoWithMetadata, RequestMetadata };