/** * Represents an HTTP method. * * This class defines standard HTTP methods as static readonly properties * and provides functionality to create new method instances from strings. */ export declare class Method { static readonly CONNECT: Method; static readonly DELETE: Method; static readonly GET: Method; static readonly HEAD: Method; static readonly OPTIONS: Method; static readonly PATCH: Method; static readonly POST: Method; static readonly PUT: Method; static readonly TRACE: Method; readonly value: string; private constructor(); /** * Compares the current method with another method to determine equality. */ equals(other: Method | string): boolean; /** * Converts a string representation of an HTTP method to its corresponding * `Method` enum or creates a new `Method` object if no match is found. * * Note that method string representations are case-sensitive! */ static fromString(method: string): Method; toJSON(): string; }