/** Minimal cache interface exposed for on-demand cache expiration. */ interface ISRCache { expire(key: string): Promise; expireAll(): Promise; } /** @internal Register the ISR cache instance on globalThis for cross-module access. */ declare function registerCache(instance: ISRCache): void; /** * Expire an ISR cache entry by its pathname. The entry is deleted from the * cache and will be re-rendered on the next request (lazy revalidation). * * No-op when ISR is not enabled — safe to call unconditionally. * * @example * ```ts * import { unstable_expirePath } from "@wyattjoh/astro-bun-adapter/cache"; * * // In an API route or middleware: * await unstable_expirePath("/blog/my-post"); * ``` */ declare function unstable_expirePath(pathname: string): Promise; /** * Expire all ISR cache entries. Every cached page is deleted and will be * re-rendered on the next request (lazy revalidation). * * No-op when ISR is not enabled — safe to call unconditionally. * * @example * ```ts * import { unstable_expireAll } from "@wyattjoh/astro-bun-adapter/cache"; * * // In an API route or middleware: * await unstable_expireAll(); * ``` */ declare function unstable_expireAll(): Promise; export { unstable_expirePath, unstable_expireAll, registerCache };