import { HTMLAttributes } from 'react';
interface CodeBlockCommonProps {
    hideLineNumbers?: boolean;
    value?: string;
    maxLines?: number;
    collapsed?: boolean;
}
interface CodeBlockContextValue extends CodeBlockCommonProps {
    setValue: (value: string) => void;
    code?: string;
    setCode: (code: string) => void;
    toggleCollapsed: () => void;
}
export declare const useCodeBlockContext: () => CodeBlockContextValue;
export interface CodeBlockProps extends HTMLAttributes<HTMLDivElement>, CodeBlockCommonProps {
    defaultValue?: string;
    maxHeight?: string | number;
    onValueChange?: (value: string) => void;
    defaultCollapsed?: boolean;
    onCollapseChange?: (value: boolean) => void;
}
export declare const CodeBlockRoot: import("react").ForwardRefExoticComponent<CodeBlockProps & import("react").RefAttributes<HTMLDivElement>>;
export {};
//# sourceMappingURL=code-block-root.d.ts.map