import { Iterable } from "@siteimprove/alfa-iterable"; import { Map } from "@siteimprove/alfa-map"; import type { Option } from "@siteimprove/alfa-option"; import type * as earl from "@siteimprove/alfa-earl"; import type * as json from "@siteimprove/alfa-json"; import { Header } from "./header.ts"; /** * @public */ export declare class Headers implements Iterable
, json.Serializable, earl.Serializable { /** * @remarks * If the iterable contains headers with duplicate names, the last header with * a given name will take precedence. */ static of(headers: Iterable
): Headers; private static _empty; static empty(): Headers; private readonly _headers; protected constructor(headers: Map); get(name: string): Option
; has(name: string): boolean; add(header: Header): Headers; delete(name: string): Headers; [Symbol.iterator](): Iterator
; toArray(): Array
; toJSON(options?: json.Serializable.Options): Headers.JSON; toEARL(): Headers.EARL; toString(): string; } /** * @public */ export declare namespace Headers { interface JSON extends Array { } interface EARL extends earl.EARL { "@context": { http: "http://www.w3.org/2011/http#"; }; "@list": Array; } function from(json: JSON): Headers; function isHeaders(value: unknown): value is Headers; } //# sourceMappingURL=headers.d.ts.map