import { type GenerateKeyPairOptions, type GenerateKeyPairResult, type KeyLike } from 'jose'; import { Jwk, JwtHeader, JwtPayload, Key, SignedJwt, VerifyOptions, VerifyResult } from '@atproto/jwk'; export { type GenerateKeyPairOptions, type GenerateKeyPairResult, type Jwk, type JwtHeader, type JwtPayload, type KeyLike, type SignedJwt, type VerifyOptions, }; export declare class JoseKey extends Key { /** * Some runtimes (e.g. Bun) require an `alg` second argument to be set when * invoking `importJWK`. In order to be compatible with these runtimes, we * provide the following method to ensure the `alg` is always set. We also * take the opportunity to ensure that the `alg` is compatible with this key. */ protected getKeyObj(alg: string): Promise>; createJwt(header: JwtHeader, payload: JwtPayload): Promise; verifyJwt(token: SignedJwt, options?: VerifyOptions): Promise>; static generateKeyPair(allowedAlgos?: readonly string[], options?: GenerateKeyPairOptions): Promise>; static generate(allowedAlgos?: string[], kid?: string, options?: Omit): Promise; static fromImportable(input: string | KeyLike | Jwk, kid?: string): Promise; /** * @see {@link exportJWK} */ static fromKeyLike(keyLike: KeyLike | Uint8Array, kid?: string, alg?: string): Promise; /** * @see {@link importPKCS8} */ static fromPKCS8(pem: string, alg: string, kid?: string): Promise; static fromJWK(input: string | Record, inputKid?: string): Promise; } //# sourceMappingURL=jose-key.d.ts.map