import * as t from "io-ts"; import * as E from "fp-ts/lib/Either"; import * as J from "fp-ts/lib/Json"; /** * This is the JWK JSON type for the EC keys. */ export declare const ECKey: t.ExactC; x: t.StringC; y: t.StringC; }>>; export type ECKey = t.TypeOf; /** * This is the JWK JSON type for the RSA keys. */ export declare const RSAKey: t.ExactC; n: t.StringC; }>>; export type RSAKey = t.TypeOf; /** * The Public Key JWK type. It could be either an ECKey or an RSAKey. */ export declare const JwkPublicKey: t.UnionC<[t.ExactC; n: t.StringC; }>>, t.ExactC; x: t.StringC; y: t.StringC; }>>]>; export type JwkPublicKey = t.TypeOf; export declare const parseJwkOrError: (token: unknown) => E.Either; export declare const JwkPublicKeyFromToken: t.Type<{ crv: string; kty: "EC"; x: string; y: string; } | { alg: string; e: string; kty: "RSA"; n: string; }, string, unknown>; export type JwkPublicKeyFromToken = t.TypeOf;