/**
 * @jsxRuntime classic
 * @jsx jsx
 * @jsxFrag
 */
import React from 'react';
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
import type { NodeProps } from '../types';
import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
type HeadingProps = NodeProps<{
    allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
    headingId?: string;
    invisible?: boolean;
    level: HeadingLevels;
    localId?: string;
    marks?: PMNode['marks'];
    showAnchorLink?: boolean;
}>;
/**
 * Gated Heading component:
 * - When platform_editor_copy_link_a11y_inconsistency_fix experiment is enabled,
 *   returns HeadingWithWrapper (new a11y-improved structure)
 * - Otherwise returns HeadingWithDuplicateAnchor (old structure)
 */
declare function Heading({ allowHeadingAnchorLinks, children, dataAttributes, headingId, invisible, level, localId, marks, nodeType, showAnchorLink, serializer, asInline, }: HeadingProps): React.JSX.Element;
export default Heading;
