"""Universal CSV import foundation (Issue #21)."""

from csv_parser.core import (
    decode_raw_bytes,
    sniff_delimiter,
    parse_csv_sample,
    column_signature,
    normalize_header_for_signature,
)
from csv_parser.module_registry import MODULE_DEFINITIONS, get_module_definition, list_modules
from csv_parser.type_converter import convert_value, build_row_after_mapping
from csv_parser.permissions import user_may_delete_mapping, user_may_edit_mapping_row

__all__ = [
    "decode_raw_bytes",
    "sniff_delimiter",
    "parse_csv_sample",
    "column_signature",
    "normalize_header_for_signature",
    "MODULE_DEFINITIONS",
    "get_module_definition",
    "list_modules",
    "convert_value",
    "build_row_after_mapping",
    "user_may_delete_mapping",
    "user_may_edit_mapping_row",
]
