The slice of Config the filter helpers read — every function below takes this rather than a full Config, so callers with only the three fields qualify.
import type { Config } from '../types.ts'; type FilterConfig = Pick<Config, 'filter' | 'lineTargets' | 'state'>; const expression: FilterConfig['filter'] = '/^Cart(:| >)/'; // the exact-module recipe
Pick<Config, "filter" | "lineTargets" | "state">