/**
 * Lift inline island IIFEs into content-hashed chunks. Pure: no filesystem
 * access — the caller writes `result.chunks` and `result.html`.
 */
export declare function extractIslandChunks(html: string, options?: ExtractIslandChunksOptions): ExtractIslandChunksResult;
/**
 * Warm the chunks of islands likely to hydrate soon (`visible` / `idle`
 * triggers) with `<link rel="prefetch" as="script">` in the document head, so
 * the chunk is already cached when the trigger fires — instant hydration with no
 * inline JS. Pure and idempotent; operates on already-chunked HTML (it reads the
 * `data-stx-src` the emitter added) and is a no-op when there's no `<head>`, no
 * chunked island, or no island with an eligible trigger.
 *
 * `prefetch` (not `preload`) is deliberate: it's low-priority/idle, so it never
 * competes with the critical render path, and it avoids the "preloaded resource
 * not used within N seconds" console warning for below-the-fold islands.
 */
export declare function injectIslandChunkPrefetch(html: string): string;
/** One extracted island chunk: a content hash and the IIFE it holds. */
export declare interface IslandChunk {
  hash: string
  code: string
}
export declare interface ExtractIslandChunksResult {
  html: string
  chunks: IslandChunk[]
}
export declare interface ExtractIslandChunksOptions {
  integrity?: boolean
  minify?: boolean
}
