# Component Methods: prerendering Signatures are the intended interfaces. Detailed rules follow in Functional Design. ## `config/inlineScripts.ts` ```ts type MovedScript = { fileName: string; body: string }; type ExternalizeResult = { html: string; moved: MovedScript[] }; // Replaces each executable inline script with a reference to a file named // after its content hash; order and all other content stay as they are. export function externalizeInlineScripts(html: string): ExternalizeResult; // Executable inline scripts still present; data blocks such as JSON-LD excluded. export function findExecutableInlineScripts(html: string): string[]; ``` ## `config/externalizeInlineScripts.ts` ```ts // Rewrites all HTML under clientDir and writes moved scripts to clientDir/assets. // Exits non-zero when a page has no moved scripts or a violation remains. export function externalizeOutput(clientDir: string): void; ``` ## `config/previewServer.ts` ```ts // Maps a request path to a file following the nginx rules. export function resolveRequest( path: string, fileExists: (file: string) => boolean, ): { file: string; status: 200 | 404 } | { redirect: string }; export function startPreviewServer(clientDir: string, port: number): Server; ``` ## `src/router.tsx` ```ts export function getRouter(): AnyRouter; ``` ## `src/hooks/useHydrated.ts` ```ts export default function useHydrated(): boolean; ``` ## `src/components/Reveal` ```ts // Props are unchanged, so the 21 call sites stay as they are. type RevealProps = BoxProps & { delay?: number }; ``` `useReveal()` keeps returning `{ ref, visible }`. `visible` now starts as `true` and only becomes `false` when the element is below the viewport after hydration. ## `src/components/DeferredImage` Props are unchanged. The rendered output gains a `