import type * as cf from "@cloudflare/workers-types";
import * as Context from "effect/Context";
import type * as SecureRandom from "effect/crypto/SecureRandom";
import * as Effect from "effect/Effect";
import { type CallbackFactory } from "../../Callback.ts";
/**
* @internal Run background work handed to `waitUntil` apart from the callback
* invocation that started it. The invocation ends first, so its schedules
* would be rejected; here they start a fresh budget, as external schedules
* do. Only for work whose schedules report their own progress.
*/
export declare const outsideAlarmPass: (effect: Effect.Effect) => Effect.Effect>;
/** @internal */
export declare const initializeAlarmCallbacks: (state: cf.DurableObjectState) => () => void;
/**
* The durable callback factory of one Durable Object instance. `stateTag`
* is the engine's own Durable Object state service, stripped (with the other
* per-invocation services) from the registration-time context a handler
* closes over.
*
* @internal
*/
export declare const makeDurableObjectCallbackFactory: (raw: cf.DurableObjectState, stateTag: Context.Key, random: SecureRandom.SecureRandom["Service"]) => CallbackFactory;
/** @internal */
export declare const dispatchAlarmCallbacks: (state: cf.DurableObjectState, hasLegacyHandler: boolean) => Effect.Effect;
//# sourceMappingURL=AlarmCallback.d.ts.map