from _typeshed import ReadableBuffer

class Error(Exception): ...

def ZSTD_compress(data: ReadableBuffer, level: int = ..., threads: int = ..., /) -> bytes: ...

compress_old = ZSTD_compress
compress = ZSTD_compress
compress2 = ZSTD_compress
compress_real_mt = ZSTD_compress
dumps = ZSTD_compress
encode = ZSTD_compress

def ZSTD_check(data: ReadableBuffer) -> int: ...

check = ZSTD_check
verify = ZSTD_check

def ZSTD_uncompress(data: ReadableBuffer, /) -> bytes: ...

decompress = ZSTD_uncompress
uncompress = ZSTD_uncompress
loads = ZSTD_uncompress
decode = ZSTD_uncompress

def ZSTD_version() -> str: ...
def ZSTD_version_compiled() -> str: ...
def ZSTD_version_loaded() -> str: ...
def ZSTD_version_number() -> int: ...
def ZSTD_threads_count() -> int: ...
def ZSTD_max_threads_count() -> int: ...
def ZSTD_external() -> int: ...
def ZSTD_with_asm() -> int: ...
def ZSTD_with_threads() -> int: ...
def ZSTD_legacy_support() -> int: ...
def ZSTD_max_compression_level() -> int: ...
def ZSTD_min_compression_level() -> int: ...
def ZSTD_default_compression_level() -> int: ...
def ZSTD_is_debug_enabled() -> int: ...
def ZSTD_is_debug_error_enabled() -> int: ...
def ZSTD_is_debug_info_enabled() -> int: ...
def ZSTD_is_debug_notice_enabled() -> int: ...
def ZSTD_setCpuCoresCacheTTL(ttl: int, /) -> int: ...
def ZSTD_stopCpuCoresCache() -> int: ...
def version() -> str: ...
