/**
 * Consent SDK Types — Storage adapter interface
 */

import type { ConsentState } from './core';

// =============================================================================
// Storage
// =============================================================================

/**
 * Storage-Adapter Interface
 */
export interface ConsentStorageAdapter {
  /** Consent laden */
  get(): ConsentState | null;

  /** Consent speichern */
  set(consent: ConsentState): void;

  /** Consent loeschen */
  clear(): void;

  /** Pruefen ob Consent existiert */
  exists(): boolean;
}
