import type { KVNamespace, MessageSendRequest, Queue, QueueSendBatchOptions, QueueSendOptions, R2ObjectBody } from "@cloudflare/workers-types"; import type { Jsonifiable } from "type-fest"; export declare function waitUntilFactory(): import("bun:test").Mock<(promise: Promise) => void>; export declare class MockKVNamespace implements KVNamespace { #private; constructor(initialData?: readonly [ string, { value: Jsonifiable; metadata?: unknown; } ][]); get: import("bun:test").Mock<(...args: any[]) => any>; put: import("bun:test").Mock<(key: string, value: string | ArrayBuffer | ArrayBufferView | import("@cloudflare/workers-types").ReadableStream, options?: import("@cloudflare/workers-types").KVNamespacePutOptions) => Promise>; delete: import("bun:test").Mock<(key: string) => Promise>; list: import("bun:test").Mock<(...args: any[]) => any>; getWithMetadata: import("bun:test").Mock<(...args: any[]) => any>; private toArrayBuffer; private getDone; private getCursor; } export declare class MockR2Bucket implements R2Bucket { #private; constructor(initialData?: readonly [string, R2ObjectBody][]); createMultipartUpload: import("bun:test").Mock<(...args: any[]) => any>; delete: import("bun:test").Mock<(keys: string | string[]) => Promise>; get: import("bun:test").Mock<{ (key: string, options: R2GetOptions & { onlyIf: R2Conditional | Headers; }): Promise; (key: string, options?: R2GetOptions): Promise; }>; head: import("bun:test").Mock<(key: string) => Promise>; list: import("bun:test").Mock<(options?: globalThis.R2ListOptions) => Promise>; put: import("bun:test").Mock<{ (key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions & { onlyIf: R2Conditional | Headers; }): Promise; (key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions): Promise; }>; resumeMultipartUpload: import("bun:test").Mock<(key: string, uploadId: string) => R2MultipartUpload>; private getDone; private getCursor; private getSize; } export declare class MockQueue implements Queue { send: import("bun:test").Mock<(message: unknown, options?: QueueSendOptions) => Promise>; sendBatch: import("bun:test").Mock<(messages: Iterable>, options?: QueueSendBatchOptions) => Promise>; }