import React, { type JSX } from 'react';
import type { CommonProps } from '../../internal/CommonWrapper/index.js';
import type { TGetRootNode } from '../../lib/rootNode/index.js';
import type { SidePageContextType } from './SidePageContext.js';
export interface SidePageHeaderProps extends Omit<CommonProps, 'children'> {
    children?: React.ReactNode | ((fixed: boolean) => React.ReactNode);
    /** Закрепляет хедер сверху сайдпейджа. */
    sticky?: boolean;
    /** Определяет, нужно ли показывать ModalSeparator. */
    hasSeparator?: boolean;
    /**
     * Обрезает длинный заголовок при «залипании» шапки.
     * @default false.
     */
    cutTitleOnStuck?: boolean;
}
export interface SidePageHeaderState {
    isNativeStuck: boolean;
    isReadyToStuck: boolean;
}
export declare const SidePageHeaderDataTids: {
    readonly root: "SidePageHeader__root";
    readonly close: "SidePage__close";
};
/**
 * Шапка сайдпейджа
 *
 * @visibleName SidePage.Header
 */
export declare class SidePageHeader extends React.Component<SidePageHeaderProps, SidePageHeaderState> {
    static __KONTUR_REACT_UI__: string;
    static displayName: string;
    static contextType: React.Context<SidePageContextType>;
    context: SidePageContextType;
    private isMobileLayout;
    state: SidePageHeaderState;
    static defaultProps: Partial<SidePageHeaderProps>;
    private theme;
    private emotion;
    private cx;
    private styles;
    private sticky;
    getRootNode: TGetRootNode;
    private setRootNode;
    componentDidMount: () => void;
    componentWillUnmount: () => void;
    private throttleHandleScroll;
    update: () => void;
    render(): JSX.Element;
    getStickyProp(): boolean;
    private renderMain;
    private renderHeader;
    private renderClose;
    private stickyRef;
}
