UNPKG

@grantcodes/footprint-astro

Version:

An Astro integration to show your websites CO2 output in the dev toolbar

26 lines (23 loc) 1.12 kB
import * as astro_dist_type_utils from 'astro/dist/type-utils'; import * as astro from 'astro'; declare const _default: { name: string; hooks: { "astro:config:setup": ({ addDevToolbarApp }: { config: astro.AstroConfig; command: "dev" | "build" | "preview" | "sync"; isRestart: boolean; updateConfig: (newConfig: astro_dist_type_utils.DeepPartial<astro.AstroConfig>) => astro.AstroConfig; addRenderer: (renderer: astro.AstroRenderer) => void; addWatchFile: (path: URL | string) => void; injectScript: (stage: astro.InjectedScriptStage, content: string) => void; injectRoute: (injectRoute: astro.InjectedRoute) => void; addClientDirective: (directive: astro.ClientDirectiveConfig) => void; addDevToolbarApp: (entrypoint: astro.DevToolbarAppEntry) => void; addMiddleware: (mid: astro.AstroIntegrationMiddleware) => void; createCodegenDir: () => URL; logger: astro.AstroIntegrationLogger; }) => void; }; }; export { _default as default };