import * as React from 'react'; import type { BGridDataItem, BGridMasterDetailIcons, BGridMasterDetailOptions } from '../types'; export interface BGridMasterDetailContextValue { gridId: string; expandColumnId: string; icons?: BGridMasterDetailIcons; expandAriaLabel: string; collapseAriaLabel: string; disabled: boolean; expandedKeysSet: ReadonlySet; getRowKey: (values: unknown) => React.Key | undefined; hasDetail: (item: BGridDataItem, sourceIndex: number) => boolean; detailRender: BGridMasterDetailOptions['detailRender']; toggle: (rowKey: React.Key, item: BGridDataItem, sourceIndex: number) => void; collapse: (rowKey: React.Key) => void; getToggleElementId: (rowKey: React.Key) => string; getDetailElementId: (rowKey: React.Key) => string; } export declare const MasterDetailContext: React.Context; export declare function useMasterDetailContext(): BGridMasterDetailContextValue | undefined;