import type { FC, HTMLAttributes, Ref } from 'react'; import { type BadgeProps } from '../Badge'; import type { HttpMethodName } from './types'; export interface HttpMethodProps extends Omit, 'children'> { /** * HTTP method to render. Known values from `HttpMethodName` get a dedicated * color via `HTTP_METHOD_COLOR`; any other string renders in slate as the * "Other" fallback (the text itself is shown verbatim). */ method: HttpMethodName | (string & {}); /** Badge size — defaults to `medium`. */ size?: BadgeProps['size']; ref?: Ref; } /** * Domain primitive that renders an HTTP method as a colored Badge. * * Wrap-free; if you need to align it inside a flex row with non-badge * neighbours, place it in a parent flex container with `items-center`. */ export declare const HttpMethod: FC;