import { BeanStub } from '../context/beanStub';
import type { AgColumn } from '../entities/agColumn';
import type { RowNode } from '../entities/rowNode';
import type { RowPinningState } from '../interfaces/gridState';
import type { IPinnedRowModel } from '../interfaces/iPinnedRowModel';
import type { RowPinnedType } from '../interfaces/iRowNode';
export declare class ManualPinnedRowModel extends BeanStub implements IPinnedRowModel {
    private top;
    private bottom;
    /** Where the user, row pinning state or `isRowPinned` pinned the grand total row. */
    private userGrandTotalPinned;
    /** The grand total row the row model shows, set by it on every refresh. */
    private grandTotalNode;
    /** The pinned copy of `grandTotalNode`, kept so it can be removed once the row model stops showing it. */
    private pinnedGrandTotalNode;
    postConstruct(): void;
    destroy(): void;
    reset(dispatch?: boolean): void;
    pinRow(rowNode: RowNode, float: RowPinnedType, column?: AgColumn | null): void;
    isManual(): boolean;
    isEmpty(floating: NonNullable<RowPinnedType>): boolean;
    isRowsToRender(floating: NonNullable<RowPinnedType>): boolean;
    ensureRowHeightsValid(): boolean;
    getPinnedTopTotalHeight(): number;
    getPinnedBottomTotalHeight(): number;
    getPinnedTopRowCount(): number;
    getPinnedBottomRowCount(): number;
    getPinnedTopRow(index: number): RowNode | undefined;
    getPinnedBottomRow(index: number): RowNode | undefined;
    getPinnedRowById(id: string, floating: NonNullable<RowPinnedType>): RowNode | undefined;
    forEachPinnedRow(floating: NonNullable<RowPinnedType>, callback: (node: RowNode, index: number) => void): void;
    getPinnedState(): RowPinningState;
    setPinnedState(state: RowPinningState): void;
    getUserGrandTotalPinned(): RowPinnedType;
    setGrandTotalNode(node: RowNode | undefined): void;
    resetGrandTotalPin(): void;
    /** `pinChanged` dispatches even when no row moves, as a hidden grand total's pin is still saved. */
    private refreshGrandTotalPin;
    /** Takes a user pin only in a client-side grid whose `grandTotalRow` is inline; returns whether it took it. */
    private takeUserGrandTotalPin;
    /** Pins the queued rows the row model has loaded, leaving the rest queued. */
    private emptyQueue;
    private pinLoaded;
    /** Accepts the pinned row or its source row. */
    private collectPinChange;
    /** Pins the shown grand total row where `grandTotalRow`, else the user, says; collects the sources it changed. */
    private pinGrandTotalRow;
    private getContainer;
    private findPinnedRowNode;
    /** Unpins without refreshing positions or dispatching, so a batch pays for those once. Returns the source row. */
    private detachPinnedRow;
    /** Detaches every pinned node matching `predicate`, hidden ones included. Returns their source rows. */
    private detachPinnedRows;
    /** Pins or moves without refreshing positions or dispatching. Returns the source row if anything changed. */
    private attachPinnedRow;
    private dispatchPinningChanged;
    private refreshRowPositions;
}
