import type { NormalizedSpan } from './types.js'; type Labelled = Pick; /** An outgoing HTTP call as OTel names it: a client span whose name is just the method — whether or not its URL is usable. */ export declare const isRequestSpan: (span: Pick) => boolean; /** The method and path of such a span; undefined for any other span, or when it carries no parseable absolute URL. */ export declare function requestParts(span: Labelled): { method: string; pathname: string; } | undefined; /** The HTTP status of a span, under either the old or the stable attribute name; undefined when there is none. */ export declare function statusCode(span: Pick): number | undefined; export declare function spanLabel(span: Labelled): string; /** * What a span is grouped by. For everything but a browser/HTTP client request that is its name. A client request is * named by its method only, so all failing GETs would be one "GET": here it gets its path, with id-like segments * replaced — `/api/inventory/1` and `/api/inventory/2` are the same operation, `GET /api/inventory/:id`. (The server * span knows the real route pattern; the browser only ever sees the URL.) * * Known limit: an id that is a word (`/api/products/blue-shirt` for `/api/products/[slug]`) cannot be told from a * route name, so such requests stay one operation per URL. */ export declare function spanOperation(span: Labelled): string; export {};