import type { RequestEvent as RequestEventShape } from "./runtime.js";
import { Effect, Stream } from "effect";
import type { EffectLike } from "./types.js";
type ResolvedLiveSource = AsyncIterable;
type LiveHandlerResult = Stream.Stream;
type LiveHandler = () => LiveHandlerResult;
export declare function is_generator_result(value: unknown): value is Effect.gen.Return;
export declare function ToEffect(value: EffectLike): Effect.Effect;
export declare function is_live_source(value: unknown): value is Stream.Stream;
export declare function run_live_handler_source(value: LiveHandlerResult, event: RequestEventShape): Promise>;
/** Runs a live handler inside the request-local ownership scope. */
export declare function run_live_handler(handler: LiveHandler, event: RequestEventShape): Promise>;
export declare function run_handler_effect(value: EffectLike, event: RequestEventShape): Promise;
export {};