import { Method } from "../../http/index.js"; import { ANY, MIRROR_REQUEST } from "./support.js"; /** * Holds configuration for how to set the `Access-Control-Allow-Methods` header. * * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods) * @see {@link CorsLayer.allowMethods} */ export declare class AllowMethods { private readonly inner; private constructor(); static default(): AllowMethods; static from(like: AllowMethodsLike): AllowMethods; /** * Allows no methods. */ static none(): AllowMethods; /** * Allows any methods by sending a wildcard (`*`). */ static any(): AllowMethods; /** * Sets a single allowed method. */ static exact(method: string | Method): AllowMethods; /** * Sets multiple allowed methods. */ static list(methods: (string | Method)[]): AllowMethods; /** * Allow any methods by mirroring the preflight `Access-Control-Request-Method` header. */ static mirrorRequest(): AllowMethods; } export type AllowMethodsLike = AllowMethods | Method | string | (string | Method)[] | typeof ANY | typeof MIRROR_REQUEST | null;