import type { AgColumn } from '../entities/agColumn';
import type { RowNode } from '../entities/rowNode';
import type { RowPinningState } from './gridState';
import type { RowPinnedType } from './iRowNode';
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export interface IPinnedRowModel {
    /** Unpins manually pinned rows, keeping the grand total row and queued ids. No-op for the static model. */
    reset(): void;
    /**
     * Pin a row from the main viewport into one of the floating containers. Pass a `column`
     * to have the model check for spanned cells.
     *
     * This is a no-op for the static pinned row model.
     */
    pinRow(node: RowNode, float: RowPinnedType, column?: AgColumn | null): void;
    /**
     * Returns `true` when the underlying implementation is the manual row pinning model.
     * Otherwise `false`.
     */
    isManual(): boolean;
    isEmpty(float: NonNullable<RowPinnedType>): boolean;
    isRowsToRender(float: 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, float: NonNullable<RowPinnedType>): RowNode | undefined;
    /** Iterate over the displayed pinned rows in a particular floating container. */
    forEachPinnedRow(float: NonNullable<RowPinnedType>, callback: (node: RowNode, index: number) => void): void;
    /** Used by the state service. This is a no-op for the static pinned row model. */
    getPinnedState(): RowPinningState;
    /** Replaces the manually pinned rows with `state`, keeping rows already where it lists them. No-op for static. */
    setPinnedState(state: RowPinningState): void;
    /** Where the user pinned the grand total row, which then also stays in the body. Static: `undefined`. */
    getUserGrandTotalPinned(): RowPinnedType;
    /** The grand total row the row model shows on this refresh, `undefined` when none. No-op for static. */
    setGrandTotalNode(node: RowNode | undefined): void;
    /** Forgets the user's pin and pins the shown grand total row where `grandTotalRow` says, dispatching any change. No-op for static. */
    resetGrandTotalPin(): void;
}
