export declare class WellKnownAuthType { readonly string: string; readonly identifier: number; constructor(string: string, identifier: number); /** * Find the {@link WellKnownAuthType} for the given identifier (as an {@link number}). Valid * identifiers are defined to be integers between 0 and 127, inclusive. Identifiers outside of * this range will produce the {@link #UNPARSEABLE_AUTH_TYPE}. Additionally, some identifiers in * that range are still only reserved and don't have a type associated yet: this method returns * the {@link #UNKNOWN_RESERVED_AUTH_TYPE} when passing such an identifier, which lets call sites * potentially detect this and keep the original representation when transmitting the associated * metadata buffer. * * @param id the looked up identifier * @return the {@link WellKnownAuthType}, or {@link #UNKNOWN_RESERVED_AUTH_TYPE} if the id is out * of the specification's range, or {@link #UNKNOWN_RESERVED_AUTH_TYPE} if the id is one that * is merely reserved but unknown to this implementation. */ static fromIdentifier(id: number): WellKnownAuthType; /** * Find the {@link WellKnownAuthType} for the given {@link String} representation. If the * representation is {@code null} or doesn't match a {@link WellKnownAuthType}, the {@link * #UNPARSEABLE_AUTH_TYPE} is returned. * * @param authTypeString the looked up mime type * @return the matching {@link WellKnownAuthType}, or {@link #UNPARSEABLE_AUTH_TYPE} if none * matches */ static fromString(authTypeString: string): WellKnownAuthType; /** @see #string() */ toString(): string; } export declare namespace WellKnownAuthType { const UNPARSEABLE_AUTH_TYPE: WellKnownAuthType; const UNKNOWN_RESERVED_AUTH_TYPE: WellKnownAuthType; const SIMPLE: WellKnownAuthType; const BEARER: WellKnownAuthType; const TYPES_BY_AUTH_ID: WellKnownAuthType[]; const TYPES_BY_AUTH_STRING: Map; }