import type * as AsyncData from "@typed/async-data" import { type Cause, Effect, type Fiber, type Option, type SubscriptionRef } from "effect" export interface QueryService { readonly latestKey: SubscriptionRef.SubscriptionRef> readonly state: SubscriptionRef.SubscriptionRef> readonly refresh: Effect.Effect> } export const Tag = (id: Id) => < Self, K extends readonly unknown[], A, E = never, >() => Effect.Tag(id)>()