import type Soup from '@girs/soup-3.0'; declare const _headers: unique symbol; export default class Headers implements Iterable<[string, string]> { [_headers]: Map; constructor(init?: HeadersInit | Headers | null); append(name: string, value: string): void; set(name: string, value: string): void; delete(name: string): void; has(name: string): boolean; get(name: string): string | null; getAll(name: string): string[]; getSetCookie(): string[]; forEach(callback: (value: string, name: string, parent: Headers) => void, thisArg?: unknown): void; keys(): IterableIterator; values(): IterableIterator; entries(): IterableIterator<[string, string]>; [Symbol.iterator](): IterableIterator<[string, string]>; get [Symbol.toStringTag](): string; toString(): string; /** * Node-fetch non-spec method: return all headers and their values as arrays. */ raw(): Record; /** * Append all headers to a Soup.Message for sending. * * `soup` is the lazily-loaded Soup namespace (see utils/soup-lazy.ts); it is * passed in rather than statically imported so this module does not link the * `gi://Soup` typelib at import time. */ _appendToSoupMessage(soup: typeof Soup, message?: Soup.Message, type?: Soup.MessageHeadersType): Soup.MessageHeaders; /** * Create a Headers instance from a Soup.Message's headers. */ static _newFromSoupMessage(soup: typeof Soup, message: Soup.Message, type?: Soup.MessageHeadersType): Headers; } export {};