import { BeanStub } from '../../context/beanStub';
import type { AgColumn } from '../../entities/agColumn';
import type { AgColumnGroup } from '../../entities/agColumnGroup';
import type { ScrollPartner } from '../../gridBodyComp/gridBodyScrollFeature';
import type { AbstractHeaderCellCtrl } from '../cells/abstractCell/abstractHeaderCellCtrl';
import type { HeaderFilterCellCtrl } from '../cells/floatingFilter/headerFilterCellCtrl';
import type { HeaderRowType } from '../row/headerRowComp';
import { HeaderRowCtrl } from '../row/headerRowCtrl';
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export interface IHeaderRowsComp {
    setViewportScrollLeft(left: number): void;
    setCtrls(ctrls: HeaderRowCtrl[]): void;
}
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare class HeaderRowContainerCtrl extends BeanStub implements ScrollPartner {
    comp: IHeaderRowsComp;
    private includeFloatingFilter;
    private filtersRowCtrl;
    private columnsRowCtrl;
    private groupsRowCtrls;
    /** The last width pushed here, so a group or floating-filter row arriving later can size itself from
     *  it rather than ask the grid body to recompute. `null` until the first push. */
    rowWidth: number | null;
    eViewport: HTMLElement;
    setComp(comp: IHeaderRowsComp, eGui: HTMLElement, eScrollViewport?: HTMLElement): void;
    /** Pushed by `GridBodyCtrl.updateWidths`. Walks the fields rather than `getAllCtrls`, which
     *  allocates, because this runs on every column width change. */
    setRowWidths(width: number): void;
    refreshCellPositions(): void;
    /** Called by the visible columns with the columns that left or reached a pinned edge, null where none did. */
    refreshPinnedEdgeCells(fromLastLeft: AgColumn | null, toLastLeft: AgColumn | null, fromFirstRight: AgColumn | null, toFirstRight: AgColumn | null): void;
    getAllCtrls(): HeaderRowCtrl[];
    refresh(keepColumns?: boolean): void;
    getHeaderCtrlForColumn(column: AgColumn | AgColumnGroup): AbstractHeaderCellCtrl | undefined;
    getFloatingFilterCtrlForColumn(column: AgColumn): HeaderFilterCellCtrl | undefined;
    getHtmlElementForColumnHeader(column: AgColumn | AgColumnGroup): HTMLElement | null;
    getRowType(rowIndex: number): HeaderRowType | undefined;
    focusHeader(rowIndex: number, column: AgColumn | AgColumnGroup, event?: KeyboardEvent): boolean;
    getGroupRowCount(): number;
    getGroupRowCtrlAtIndex(index: number): HeaderRowCtrl;
    getRowCount(): number;
    setHorizontalScroll(offset: number): void;
    onScrollCallback(fn: () => void): void;
    destroy(): void;
    private setupDragAndDrop;
    private restoreFocusOnHeader;
}
