/**
 * 범용 DB 관리를 위한 React Hook
 * @param dbName 사용할 DB 이름
 * @param storeName 사용할 스토어 이름
 * @param options 추가 옵션 (버전, 메타키 등)
 */
export declare function useDB(dbName: string, storeName: string, options?: {
    dataFieldName?: string;
}): {
    save: <T>(id: string, data: T) => Promise<boolean>;
    get: <T>(id: string) => Promise<T | null>;
    delete: (id: string) => Promise<boolean>;
    getAll: <T>() => Promise<Record<string, T>>;
    clearAll: () => Promise<boolean>;
    batchSave: <T>(items: Array<{
        data: T;
        id: string;
    }>) => Promise<boolean>;
    batchDelete: (ids: string[]) => Promise<boolean>;
    getCached: <T>(id: string) => T | null;
    setCacheSize: (size: number) => void;
    clearCache: () => void;
    cancelOperation: (operationId: string) => void;
    cancelAllOperations: () => void;
    isLoading: boolean;
    error: Error | null;
};
