import * as tinyRouter from '@lifeart/tiny-router'; /** * Preload a stylesheet via `` — a browser-only progressive * enhancement. Guard on RUNTIME DOM availability (`typeof document`), not the * build-time `import.meta.env.SSR` flag: the flag is only set in vite's SSR * build, so `!import.meta.env.SSR` was `true` (→ ran `document.createElement`) * in EVERY other non-browser context — plain Node, a worker, a non-vite SSR * host, a test without a DOM — throwing `ReferenceError: document is not * defined`. A capability check is correct everywhere: it runs exactly when a * document exists and is a safe no-op otherwise. (Fixes #141.) */ export declare function preloadCss(href: string): void; export declare function createRouter(): tinyRouter.Router; export declare const router: tinyRouter.Router;