/*** EXPORT ------------------------------------------- ***/ /** * Ambient declarations for Svelte 5 runes so `deno check` can type-check * `.svelte.ts` files. The runtime forms are injected by the Svelte compiler. */ declare function $state(initial: T): T; declare function $state(): T | undefined; declare namespace $state { function raw(initial: T): T; function raw(): T | undefined; function snapshot(value: T): T; } declare function $derived(expression: T): T; declare namespace $derived { function by(fn: () => T): T; } declare function $effect(fn: () => void | (() => void)): void; declare namespace $effect { function pre(fn: () => void | (() => void)): void; function root(fn: () => void | (() => void)): () => void; function tracking(): boolean; } declare function $props>(): T; declare function $bindable(fallback?: T): T; declare function $inspect(...values: T[]): { with: (fn: (type: "init" | "update", ...values: T[]) => void) => void }; declare function $host(): T;