import { FastifyPluginCallback } from 'fastify'; import { PathLike } from 'fs'; import Polyglot from 'node-polyglot'; declare module 'fastify' { interface FastifyInstance { i18n: Polyglot } } declare namespace fastifyPolyglot { export interface FastifyPolyglotOptions { defaultLocale?: string locales?: Record localesPath?: string } } type FastifyPolyglot = FastifyPluginCallback declare function fastifyPolyglot(...params: Parameters): ReturnType export = fastifyPolyglot