from typing import Any

MBLENGTH: Any

class Charset:
    is_default: bool
    def __init__(self, id, name, collation, is_default: bool = False) -> None: ...

class Charsets:
    def add(self, c): ...
    def by_id(self, id): ...
    def by_name(self, name): ...

def charset_by_name(name): ...
def charset_by_id(id): ...
