import type { Call, CallOutput } from "./calls.js"; import type { Property, PropertyType } from "./properties.js"; /** * Globals that may be overridden by the core-runtime. See matching core-runtime file to understand * the specific behavior. * * In this case, we'll provide a default no-op hook function. * When someone uses the enterEventualCallHookScope in runtime, the getEventualCallHook function * will be overridden to return that hook (based on async scope.) */ declare global { export function getEventualHook(): EventualHook; export function tryGetEventualHook(): EventualHook | undefined; } export declare const EventualPromiseSymbol: unique symbol; export interface EventualPromise extends Promise { /** * The sequence number associated with the Eventual for the execution. */ [EventualPromiseSymbol]: number; } export interface EventualHook { /** * Execute async operation. */ executeEventualCall(eventual: E): EventualPromise>>; /** * Retrieve constant properties. */ getEventualProperty

(property: P): PropertyType

; } //# sourceMappingURL=eventual-hook.d.ts.map