import type { PeerCertificate } from "node:tls"; /** What a client certificate asserts, as the door reads it off the socket. */ export interface PeerIdentity { /** Whether the certificate chains to the configured client CA. */ readonly authorized: boolean; readonly sanUris: readonly string[]; /** SHA-256 fingerprint, lower-case hex without separators. */ readonly fingerprint: string; } /** The parts of a socket the door looks at; a plain socket has neither. */ export interface PeerSocket { readonly authorized?: boolean; getPeerCertificate?(): PeerCertificate | object; } /** Normalises a Node fingerprint, `AB:CD:…`, to the form the principals file holds. */ export declare function normaliseFingerprint(value: string): string; /** * Reads the client certificate a connection presented, or null when it * presented none (a plain socket, or a TLS socket the kubelet's probe * opened). The SAN URIs are the names a workload identity travels under; * the fingerprint pins one certificate when the file asks for that. */ export declare function peerIdentity(socket: PeerSocket): PeerIdentity | null; //# sourceMappingURL=PeerIdentity.d.ts.map