// The slice of the Workers runtime agent-unit uses, so the package needs no Workers type package. export interface DurableObjectStorageLike { get(key: string): Promise; put(key: string, value: unknown): Promise; delete(key: string): Promise; list(options?: { prefix?: string }): Promise>; setAlarm(scheduledTime: number | Date): Promise; getAlarm(): Promise; } export interface DurableObjectStateLike { readonly storage: DurableObjectStorageLike; waitUntil(promise: Promise): void; } export interface DurableObjectNamespaceLike { idFromName(name: string): unknown; get(id: unknown): Stub; } export interface ExecutionContextLike { waitUntil(promise: Promise): void; }