"""
FilterMate OGR Backend Package.

OGR provider implementations for file-based formats.
Universal fallback for unsupported providers.

Part of Phase 4 Backend Refactoring (ARCH-044).
"""
from .backend import OGRBackend, create_ogr_backend
from .executor_wrapper import OGRFilterExecutor
from .filter_executor import (
    build_ogr_filter_from_selection,
    format_ogr_pk_values,
    normalize_column_names_for_ogr,
    build_ogr_simple_filter,
    apply_ogr_subset,
    combine_ogr_filters,
    # EPIC-1 Phase E4-S8: OGR Reset and Unfilter Actions
    execute_reset_action_ogr,
    execute_unfilter_action_ogr,
    cleanup_ogr_temp_layers,
    # EPIC-1 Phase E4-S7: OGR Source Geometry Preparation
    OGRSourceContext,
    validate_task_features,
    recover_features_from_fids,
    determine_source_mode,
    validate_ogr_result_layer,
    prepare_ogr_source_geom,
    # EPIC-1 Phase E4-S7b: OGR Spatial Selection
    OGRSpatialSelectionContext,
    execute_ogr_spatial_selection,
)

# v4.1.0: Expression Builder (migrated from before_migration)
from .expression_builder import OGRExpressionBuilder, CancellableFeedback

__all__ = [
    'OGRBackend',
    'create_ogr_backend',
    # Filter executor functions
    'build_ogr_filter_from_selection',
    'format_ogr_pk_values',
    'normalize_column_names_for_ogr',
    'build_ogr_simple_filter',
    'apply_ogr_subset',
    'combine_ogr_filters',
    # EPIC-1 Phase E4-S8: Reset and Unfilter
    'execute_reset_action_ogr',
    'execute_unfilter_action_ogr',
    'cleanup_ogr_temp_layers',
    # EPIC-1 Phase E4-S7
    'OGRSourceContext',
    'validate_task_features',
    'recover_features_from_fids',
    'determine_source_mode',
    'validate_ogr_result_layer',
    'prepare_ogr_source_geom',
    # EPIC-1 Phase E4-S7b
    'OGRSpatialSelectionContext',
    'execute_ogr_spatial_selection',
    # v4.1.0: Expression Builder
    'OGRExpressionBuilder',
    'CancellableFeedback',
]
