Files
vat-api.eu/node_modules/unenv/dist/runtime/node/internal/tls/tls-socket.d.mts
2026-02-13 22:02:30 +01:00

32 lines
1.1 KiB
TypeScript

import type nodeTls from "node:tls";
import { Socket } from "node:net";
export declare class TLSSocket extends Socket implements nodeTls.TLSSocket {
authorized: boolean;
encrypted: true;
alpnProtocol: null;
authorizationError: Error;
exportKeyingMaterial(): Buffer;
getCipher(): nodeTls.CipherNameAndProtocol;
getPeerCertificate(detailed: true): nodeTls.DetailedPeerCertificate;
getPeerCertificate(detailed?: false): nodeTls.PeerCertificate;
getPeerCertificate(detailed?: boolean): nodeTls.PeerCertificate | nodeTls.DetailedPeerCertificate;
getCertificate(): null;
getEphemeralKeyInfo(): null;
getFinished(): undefined;
getPeerFinished(): undefined;
getProtocol(): null;
getSession(): undefined;
getSharedSigalgs(): unknown;
getTLSTicket(): undefined;
isSessionReused(): boolean;
renegotiate(options: {
rejectUnauthorized?: boolean | undefined;
requestCert?: boolean | undefined;
}, callback: (err: Error | null) => void): undefined;
setMaxSendFragment(size: number): boolean;
disableRenegotiation();
enableTrace();
getPeerX509Certificate(): undefined;
getX509Certificate(): undefined;
}