import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlFormatBytesElement from "@shoelace-style/shoelace/dist/components/format-bytes/format-bytes.js";
export type { SlFormatBytesElement };
export interface SlFormatBytesProps
extends HTMLAttributes {
ref?: Ref;
/**
* The number to format in bytes.
*/
value?: number;
/**
* The type of unit to display.
*/
unit?: "byte" | "bit";
/**
* Determines how to display the result, e.g. "100 bytes", "100 b", or "100b".
*/
display?: "long" | "short" | "narrow";
}
/**
* Formats a number as a human readable bytes value.
*/
export default function SlFormatBytes(
props: SlFormatBytesProps,
): ReactElement;