import type { ResolvedServerStatsConfig } from '../types.js'; /** Minimal interface for the Edge.js engine used in the plugin. */ interface EdgeEngine { mount(name: string, path: string): void; compiler: unknown; globals: Record; processor: unknown; registerTag(tag: EdgeTagDefinition): void; } /** Minimal interface for an Edge tag definition. */ interface EdgeTagDefinition { tagName: string; block: boolean; seekable: boolean; compile(parser: EdgeParser, buffer: EdgeBuffer, token: EdgeToken): void; } /** Minimal interface for the Edge tag compiler parser. */ interface EdgeParser { } /** Minimal interface for the Edge tag compiler buffer. */ interface EdgeBuffer { writeStatement(statement: string, filename: string, line: number): void; outputExpression(expression: string, filename: string, line: number, escape: boolean): void; } /** Minimal interface for the Edge tag compiler token. */ interface EdgeToken { filename: string; loc: { start: { line: number; }; }; } /** * Edge plugin that registers `@serverStats()` as a tag that renders nothing. * * Edge prints an unregistered `@tag()` line into the page verbatim, so a layout * that keeps `@serverStats()` in place must still find a tag under that name * when the stats bar is off (production without `production.enabled`, routes * refused by the fail-closed guard). This one reads no assets and emits nothing. */ export declare function edgePluginServerStatsInert(): (edge: EdgeEngine) => void; /** * Edge plugin that registers the `@serverStats()` tag. */ export declare function edgePluginServerStats(config: ResolvedServerStatsConfig): (edge: EdgeEngine) => void; export {};