import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-C08egG5a.js'; /** * Minimal async key-value storage interface. * * Compatible with `@react-native-async-storage/async-storage` and * any other storage that exposes the same three methods. */ interface AsyncStorageLike { getItem(key: string): Promise; setItem(key: string, value: string): Promise; removeItem(key: string): Promise; } /** * AsyncStorage-backed TaskQueue for Expo/React Native. * * Persists inbox, outbox, and an optional config blob to AsyncStorage * so that data survives process restarts and can be shared between * foreground and background execution contexts. */ declare class AsyncStorageTaskQueue implements TaskQueue { private readonly storage; private readonly inboxKey; private readonly outboxKey; private readonly configKey; constructor(storage: AsyncStorageLike, prefix?: string); addTask(task: TaskItem): Promise; removeTask(id: string): Promise; getTasks(type?: string): Promise; clearTasks(): Promise; pushResult(result: TaskResult): Promise; getResults(): Promise; acknowledgeResults(ids: string[]): Promise; /** * Persist a config blob alongside the queue data. * Used by @see ExpoWallet.setup to store the wallet parameters * that the background handler needs to reconstruct providers. */ persistConfig(config: Record | object): Promise; /** * Load the persisted config blob. * Used by the background handler to rehydrate wallet dependencies. */ loadConfig>(): Promise; private readList; private writeList; } export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };