import type { Parts } from "../../http/request.js"; export type AllowCredentialsPredicate = (origin: string, parts: Parts) => boolean; /** * Holds configuration for how to set the `Access-Control-Allow-Credentials` header. * * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials) * @see {@link CorsLayer.allowCredentials} */ export declare class AllowCredentials { private readonly inner; private constructor(); static default(): AllowCredentials; static from(like: AllowCredentialsLike): AllowCredentials; /** * Allows credentials for all requests. */ static yes(): AllowCredentials; /** * Allows credentials for no request. */ static no(): AllowCredentials; /** * Allows credentials for some requests, based on a given predicate. */ static predicate(predicate: AllowCredentialsPredicate): AllowCredentials; } export type AllowCredentialsLike = AllowCredentials | boolean | AllowCredentialsPredicate;