import type { FastifyInstance } from "fastify"; interface WebpackManifestEntrypoints { [index: string]: { assets?: { css?: string[]; js: string[]; }; }; } export interface WebpackManifest { entrypoints: WebpackManifestEntrypoints; [index: string]: WebpackManifestEntrypoints | string; } /** Doodad that can generate asset urls from the webpack manifest */ export declare class AssetManager { readonly server: FastifyInstance; manifestPath: string; manifestCache: WebpackManifest | null; constructor(server: FastifyInstance); reloadManifest(): Promise; expireManifestCache(): void; url: (asset: string) => Promise; entrypointTags: (entrypoint: string, only?: "css" | "js") => Promise; stylesheetTag: (href: string) => string; scriptTag: (src: string) => string; jsSources: (entrypoint: string) => Promise">; private buildURL; } export {};