import { CancelledError, RestateError, RetryableError, TerminalError, TimeoutError } from "./types/errors.js";
import { isRestatePromise } from "./promises.js";
import { InvocationIdParser, RestatePromise } from "./context.js";
import { Opts, SendOpts, handlers, object, rpc, service, workflow } from "./types/rpc.js";
import { internal_exports } from "./internal.js";
import { serde as serde$1 } from "@restatedev/restate-sdk-core";

//#region src/common_api.ts
/**
* @deprecated Use {@link RestatePromise}
*/
const CombineablePromise = RestatePromise;
const createServiceHandler = handlers.handler;
const createObjectHandler = handlers.object.exclusive;
const createObjectSharedHandler = handlers.object.shared;
const createWorkflowHandler = handlers.workflow.workflow;
const createWorkflowSharedHandler = handlers.workflow.shared;

//#endregion
export { CombineablePromise, createObjectHandler, createObjectSharedHandler, createServiceHandler, createWorkflowHandler, createWorkflowSharedHandler, serde$1 as serde };
//# sourceMappingURL=common_api.js.map