import React from "react";
export declare type CodeProps = {
    /** An HTML ID attribute that will be attached to the the rendered component. Useful for targeting it from tests */
    id?: string;
    /** Text value to be styled as code like representation */
    value: string;
    /** Optional string to render before the `value`. Useful as a way to supply a PROMPT. */
    prefix?: string;
    /** Additional classes that will be spread over the icon. Avoid changing the Icon visually. */
    className?: string;
} & ({
    /** Controls if the Code component holds sensitive data that is not to be revealed immediately */
    isSecret: true;
    /** Optional masked value for sensitive data. */
    secretText?: string;
    /** Controls if the masked text can be revealed */
    canReveal?: boolean;
} | {
    isSecret?: false;
    secretText?: never;
    canReveal?: never;
});
export declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLButtonElement>>;
