import "./telemetry"; import type { FastifyStaticOptions } from "@fastify/static"; import CacheableLookup from "cacheable-lookup"; import type { EnvironmentConfig } from "./config"; import type { RequireBootPluginOptions } from "./plugins/app-boot"; import type { RequirePluginOptions } from "./plugins/app-routes"; import { shouldIgnoreOutgoingUrl } from "./telemetry"; import type { StarscreamServer } from "./types"; export declare const dnsCache: CacheableLookup; export declare const logger: import("pino").default.Logger; declare module "fastify" { interface FastifyInstance { shouldIgnoreOutgoingURLForInstrumentation: typeof shouldIgnoreOutgoingUrl; requireBootPlugins(dirs: string | string[], options?: Partial): Promise; requirePluginsAtPath(path: string, options?: Partial): Promise; registerStatic(options: FastifyStaticOptions): Promise; defaultErrorSerializer(error: Error): Record; } } export declare function starscream(config?: EnvironmentConfig): StarscreamServer; export declare const server: StarscreamServer, import("fastify").FastifyBaseLogger>; export declare const run: (serverInstance?: StarscreamServer, config?: EnvironmentConfig) => Promise; /** Handy function for running database work in utilities and scripts within a transaction. Forces all the EntityManagers accessible via starscream to be the same one, and wraps the callback in a transaction and runs it. */ export declare const inlineOperation: (callback: () => Promise) => Promise;