import type { NativeRemoteQueryOverride } from "./native-types.js"; import type { EffectRemoteQueryUpdateBrand } from "./client/types.js"; import type { RemoteFailure } from "./shared.js"; import type { Effect } from "effect"; /** * Optimistic query override. Yield it to apply the override and receive its * release function, or pass it un-yielded to `.updates(...)` so it applies * when the command runs and is released when the command settles. * * @since 5.0.0 */ export type EffectRemoteQueryOverride = EffectRemoteQueryUpdateBrand & Effect.Effect>; type NativeSet = (value: Output) => void; type NativeWithOverride = (update: (current: Output) => Output) => unknown; export declare const MakeQuerySet: (resource: unknown, set: NativeSet, value: Output) => Effect.Effect, never>; export declare function make_query_override(resource: unknown, with_override: NativeWithOverride, update: (current: Output) => Output): EffectRemoteQueryOverride; export {};