import * as v from 'valibot'; import type { Jwks } from './v-jwk.js'; /** * Fetches a JSON Web Key Set (JWKS) from the specified URI. * * @param jwksUri - The URI of the JWKS endpoint. * @returns A Promise that resolves to the JWKS object. * @throws Will throw an error if the fetch fails or if the response is not valid JSON. */ export declare function joseJwksFetch(jwksUri: string): Promise; export declare const vJwksExtractable: v.LooseObjectSchema<{ readonly jwks: v.OptionalSchema, never>; readonly kty: v.StringSchema; }, undefined>, undefined>; }, undefined>, never>; readonly jwks_uri: v.OptionalSchema, never>; }, undefined>; /** * Extracts JSON Web Key Set (JWKS) from the provided metadata. * If a jwks field is provided, the JWKS will be extracted from the field. * If a jwks_uri is provided, the JWKS will be fetched from the URI. * * @param input - The metadata input to be validated and parsed. * @returns A promise that resolves to the extracted JWKS or undefined. * @throws {JoseJwksExtractionError} If the metadata format is invalid or no decryption key is found. */ export declare const joseJwksExtract: (input: v.InferInput) => Promise<{ keys: ({ kty: string; use?: string | undefined; alg?: string | undefined; crv?: string | undefined; d?: string | undefined; dp?: string | undefined; dq?: string | undefined; e?: string | undefined; ext?: boolean | undefined; k?: string | undefined; key_ops?: string[] | undefined; kid?: string | undefined; n?: string | undefined; oth?: { d?: string | undefined; r?: string | undefined; t?: string | undefined; }[] | undefined; p?: string | undefined; q?: string | undefined; qi?: string | undefined; x?: string | undefined; y?: string | undefined; x5c?: string[] | undefined; x5t?: string | undefined; 'x5t#S256'?: string | undefined; x5u?: string | undefined; } & { [key: string]: unknown; })[]; } | undefined>; //# sourceMappingURL=u-jwk.d.ts.map