import { type GridState } from '../../core/grid/index.js'; import { type GridFeature, type RowNode } from '../../core/types/index.js'; import type { MasterDetailOptions } from './master-detail.types.js'; export declare class MasterDetail { #private; readonly single: boolean; constructor(grid: GridState, options: MasterDetailOptions); hasDetail: (row: TRow) => boolean; isDetailRow: (node: RowNode) => boolean; masterOf: (node: RowNode) => string; build: (nodes: RowNode[]) => RowNode[]; toggle: (id: string) => void; closeAll: () => void; } export declare function masterDetail(options?: MasterDetailOptions): GridFeature; export declare function getMasterDetail(grid: GridState): MasterDetail | undefined; declare module '../../core/types/api.js' { interface GridApi { toggleDetail?: (id: string) => void; closeAllDetails?: () => void; } }