import type { Optional } from '@sudobility/types'; export type AsyncResult = { data?: T; error?: Error; success: boolean; }; export declare const safeAsync: (operation: () => Promise, context?: string) => Promise>; export declare const withLoadingState: (operation: () => Promise, setLoading: (loading: boolean) => void, setError: (error: Optional) => void, context?: string) => Promise>; export declare const safeParallel: (operations: readonly [...{ [K in keyof T]: () => Promise; }], context?: string) => Promise>; export declare const withTimeout: (operation: (signal: AbortSignal) => Promise, timeoutMs: number, context?: string) => Promise; export declare const withCache: (key: string, operation: () => Promise, ttlMs?: number) => Promise; export declare const clearExpiredCache: () => void; export declare const debounceAsync: (fn: (...args: T) => Promise, delay: number, key: string) => ((...args: T) => Promise>); //# sourceMappingURL=async-helpers.d.ts.map