export type PrefetchStrategy = "hover" | "viewport" | "load" | "tap"; export interface PrefetchInitOptions { prefetchAll?: boolean; defaultStrategy?: PrefetchStrategy; } export interface PrefetchOptions { ignoreSlowConnection?: boolean; with?: "link" | "fetch"; } /** * Reset all module-level state. Exported for test isolation only — not part of * the public API and not re-exported from any barrel. */ export declare function __resetForTests(): void; /** * Public prefetch function. Idempotent per href. */ export declare function prefetch(url: string, opts?: PrefetchOptions): void; /** * Initialize the prefetch module. * * Idempotent — multiple calls are safe. The module-level `initialized` flag * ensures listeners are registered exactly once. * * DISABLED-FLAG CONTRACT: if `` * is present in the document at init() time, this function is a no-op. */ export declare function init(options?: PrefetchInitOptions): void;