import type { ApiError } from '../../../models/interfaces';
import { type StorageInterface } from '../utils/storageHelpers';
export interface UseStorageOptions {
    onError?: (error: ApiError) => void;
    logger?: (message: string, error?: unknown) => void;
    errorCode?: string;
}
export interface UseStorageResult {
    storage: StorageInterface | null;
    isReady: boolean;
    error: string | null;
    refresh: () => Promise<StorageInterface | null>;
    withStorage: <T>(callback: (storage: StorageInterface) => Promise<T>) => Promise<T | null>;
}
/**
 * React hook that exposes a platform-agnostic storage reference.
 * Handles initialization, error propagation, and lazy re-initialization.
 *
 * @param options - Optional configuration for error reporting and logging
 */
export declare const useStorage: ({ onError, logger, errorCode, }?: UseStorageOptions) => UseStorageResult;
//# sourceMappingURL=useStorage.d.ts.map