import { getDurableRequestStore } from "./store.js";
import { ok } from "../../is.js";
export function getDurableRequest(durableRequestId) {
    const store = getDurableRequestStore();
    return store.get(durableRequestId);
}
export function getDurableRequestIdForEvent(event) {
    ok(event.durableEventId, "Expected durableEventId");
    return `${event.type}:request:${event.durableEventId}`;
}
export function getDurableRequestForEvent(event) {
    return getDurableRequest(getDurableRequestIdForEvent(event));
}
//# sourceMappingURL=get-durable-request.js.map