mod backends;
mod base;
mod bitmap;
mod buddy_allocator;
mod cached_file;
pub(crate) mod compression;
mod fast_hash;
#[cfg(feature = "std")]
pub mod file_backend;
pub mod flash_backend;
mod header;
mod layout;
mod lru_cache;
mod page_manager;
mod region;
mod savepoint;
#[allow(clippy::pedantic, dead_code)]
mod xxh3;

pub use backends::InMemoryBackend;
#[cfg(feature = "std")]
pub(crate) use backends::ReadOnlyBackend;
pub(crate) use base::{
    MAX_PAIR_LENGTH, MAX_VALUE_LENGTH, Page, PageHint, PageNumber, PageTrackerPolicy,
};
pub use compression::CompressionConfig;
pub(crate) use header::PAGE_SIZE;
pub(crate) use page_manager::{
    FILE_FORMAT_VERSION3, ShrinkPolicy, TransactionalMemory, xxh3_checksum,
};
pub use savepoint::Savepoint;
pub(crate) use savepoint::SerializedSavepoint;

pub(super) use base::{PageImpl, PageMut};
pub(crate) use xxh3::{Xxh3StreamHasher, hash64_with_seed, hash128_with_seed};
