import type { AgColumn, BeanCollection, ColumnEventType, ColumnState, ColumnStateParams, IOrderedColsService } from 'ag-grid-community';
import { BaseColsService } from './baseColsService';
/** Index-ordered boolean-activation services (`rowGroupColsSvc`/`pivotColsSvc`); owns shared state-sync,
 *  ordering and hierarchy seating. (`valueColsSvc` uses `aggFunc`, so extends the base directly.) */
export declare abstract class OrderedColsService extends BaseColsService implements IOrderedColsService {
    protected abstract readonly enableProp: 'rowGroup' | 'pivot';
    protected abstract readonly indexProp: 'rowGroupIndex' | 'pivotIndex';
    protected abstract readonly initialEnableProp: 'initialRowGroup' | 'initialPivot';
    protected abstract readonly initialIndexProp: 'initialRowGroupIndex' | 'initialPivotIndex';
    /** Writes just this col's role flag (`rowGroupActive`/`pivotActive`), returning false if already set (no-op). */
    protected abstract setActiveFlag(col: AgColumn, active: boolean): boolean;
    /** Flag write + per-col events; only the flag field (via {@link setActiveFlag}) and `enableProp` differ per service. */
    protected writeColActive(col: AgColumn, active: boolean, source: ColumnEventType): boolean;
    /** Hierarchy virtuals apply only to the ordered services — kept here so `BaseColsService` stays hierarchy-free. */
    private groupHierarchCols?;
    wireBeans(beans: BeanCollection): void;
    private getActiveHierarchyCols;
    extractCol(col: AgColumn, colIsNew: boolean): void;
    willExtractCol(col: AgColumn, colIsNew: boolean): boolean;
    /** This col's hierarchy virtuals (date-part group levels) to seat immediately before it; undefined if none. */
    private getActiveVirtuals;
    /** Seat the col's hierarchy virtuals before it (bulk path; their flags are set later by the diff).
     *
     *  A caller that names any of `col`'s virtuals itself is choosing levels explicitly, so its list is taken
     *  literally and the unnamed levels are left out — the only way to express "group by just this level", and
     *  what the drop zone needs so a level the user removed is not re-seated by the next full-list set. A list
     *  naming no virtual still gets every configured level. Either way the result is a function of the list
     *  alone, never of the current state.
     */
    protected seatActiveCol(res: Set<AgColumn>, col: AgColumn, provided?: Set<AgColumn>): void;
    /** Incremental activate also seats (and flags) the col's hierarchy virtuals before it. */
    protected setColActive(col: AgColumn, active: boolean, source: ColumnEventType, runSideEffects?: boolean): boolean;
    syncColState(column: AgColumn, stateItem: ColumnState | null, defaultState: ColumnStateParams | undefined, source: ColumnEventType): void;
    /** Fold hierarchy ordering in front of the state-index sort; else fall back to the base index sort. */
    protected sortPendingCols(cols: AgColumn[]): boolean;
    /** Stamps synthetic `indexProp` onto `incoming`/`accumulator` so a `cellDataType`-inferred rowGroup/pivot
     *  flip keeps the original primary-col order (new cols slot in at their col-def position). */
    restoreColumnOrder(incoming: {
        [colId: string]: ColumnState;
    }, accumulator: {
        [colId: string]: ColumnState;
    }): void;
}
