/**
 * SvelteKit — navigation written as markup.
 *
 *   <a href="/login">Sign in</a>
 *   <a href="/profile/@{user.username}">…</a>
 *   <a href={`/article/${slug}`}>…</a>
 *
 * SvelteKit has no link component: an ordinary `<a href>` IS the navigation,
 * intercepted by the router. So a page's outgoing links are plain markup, the
 * extractor records no reference for them, and the resolver in
 * `frameworks/sveltekit-router.ts` — which binds `goto` and `redirect` —
 * never sees them. This pass reads every internal `<a href>` out of the
 * source, attributes it to the component (the innermost function) it is
 * written in, matches it against the SvelteKit route table, and synthesizes
 * one `navigates` edge from the component to the page.
 *
 * Edges are `provenance:'heuristic'`, `synthesizedBy:'sveltekit-link'`, with
 * the href as written and `registeredAt` = the markup site. An external href
 * is a link out of the site, not a transition; a computed one is nothing; a
 * path no page serves is nothing. Nothing here runs on a project with no
 * SvelteKit pages.
 *
 * This is `next-router-synthesizer.ts`'s twin over `<a href>` alone — Next
 * reads `<Link href>` too, and Svelte has no such component.
 *
 * A second pass here binds a route to the `+page.svelte` that serves it
 * (`svelteKitPageComponentEdges`): the route node and the component sit in the
 * same file, but nothing joined them, so a SvelteKit page had no body for the
 * Steps picture to walk and opened as a lone box.
 *
 * The other half of the join — a page and the `+page.server.js` beside it — is
 * `callback-synthesizer.ts`'s `svelteKitLoadEdges`, which already existed: a
 * SvelteKit page and its loader are two halves of one route joined by the file
 * system rather than by a call, and without that join a page's own auth guard
 * (`redirect(302, '/login')` in its loader) belongs to no screen at all.
 */
import type { Edge } from '../types';
import type { ResolutionContext } from './types';
import type { MaybeYield } from './cooperative-yield';
export declare function svelteKitLinkEdges(ctx: ResolutionContext, onYield: MaybeYield): Promise<Edge[]>;
/**
 * One `calls` edge from each `+page.svelte` route to the component in its own
 * file — the page that renders when a navigation lands there.
 *
 * Every other framework's resolver names this at extraction: a Next page route
 * points at the file's default export, a React Router route at the component
 * the markup named. SvelteKit's route is derived from the file's PATH, and its
 * component has no name of its own to reference (every page file's component
 * is called `+page`), so the two are joined here, where both are already in
 * hand and the match is the file itself rather than a name.
 *
 * With it, `route-roots.ts` reads the page as the route's root: the Steps
 * picture starts at the page instead of at an empty box, and the Screens walk
 * attributes a navigation to the screen whose component holds it rather than
 * falling back to the file it was written in.
 */
export declare function svelteKitPageComponentEdges(ctx: ResolutionContext, onYield: MaybeYield): Promise<Edge[]>;
//# sourceMappingURL=sveltekit-synthesizer.d.ts.map