import 'pinia'
import type { PersistOption } from './indexdb'

declare module 'pinia' {
  export interface DefineStoreOptionsBase<S, Store> {
    persist?: PersistOption
  }

  export interface PiniaCustomProperties {
    $persistNow?: () => Promise<void>
    $clearPersisted?: () => Promise<void>
  }
}
