import { HttpMethod } from '../types/openapi'; import { OperationAction } from '../types/asyncapi/OperationAction'; export type MethodBadgeSize = "sm" | "xs"; interface MethodBadgeProps { /** An OpenAPI HTTP method or an AsyncAPI operation action — same pill, one color map. Renders nothing when undefined (e.g. an operation with no action yet). */ method: HttpMethod | OperationAction | undefined; /** `sm` for detail/table contexts, `xs` for compact ones like the nav. Defaults to `sm`. */ size?: MethodBadgeSize; /** Extra layout classes for the specific spot it's dropped into (e.g. a fixed table-column width). */ className?: string; } /** The method/action color pill shared across OpenAPI's endpoint detail, its endpoints table, and AsyncAPI's operation list/detail/nav — one place for the method→color mapping, for both specs. */ export default function MethodBadge({ method, size, className }: MethodBadgeProps): import("react").JSX.Element | null; export {};