@types/node 14.18.61 → 14.18.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. node v14.18/README.md +1 -1
  2. node v14.18/assert.d.ts +33 -31
  3. node v14.18/async_hooks.d.ts +27 -20
  4. node v14.18/buffer.d.ts +4 -4
  5. node v14.18/child_process.d.ts +191 -62
  6. node v14.18/cluster.d.ts +59 -28
  7. node v14.18/console.d.ts +6 -6
  8. node v14.18/constants.d.ts +12 -11
  9. node v14.18/crypto.d.ts +232 -228
  10. node v14.18/dgram.d.ts +50 -14
  11. node v14.18/dns.d.ts +183 -54
  12. node v14.18/domain.d.ts +4 -4
  13. node v14.18/events.d.ts +4 -4
  14. node v14.18/fs/promises.d.ts +87 -25
  15. node v14.18/fs.d.ts +404 -104
  16. node v14.18/globals.d.ts +33 -16
  17. node v14.18/http.d.ts +201 -201
  18. node v14.18/http2.d.ts +340 -93
  19. node v14.18/https.d.ts +107 -105
  20. node v14.18/inspector.d.ts +4 -4
  21. node v14.18/module.d.ts +4 -4
  22. node v14.18/net.d.ts +27 -12
  23. node v14.18/os.d.ts +4 -4
  24. node v14.18/package.json +2 -2
  25. node v14.18/path.d.ts +5 -5
  26. node v14.18/perf_hooks.d.ts +5 -5
  27. node v14.18/process.d.ts +61 -22
  28. node v14.18/punycode.d.ts +3 -3
  29. node v14.18/querystring.d.ts +15 -5
  30. node v14.18/readline.d.ts +16 -6
  31. node v14.18/repl.d.ts +13 -7
  32. node v14.18/stream.d.ts +160 -100
  33. node v14.18/string_decoder.d.ts +3 -3
  34. node v14.18/timers.d.ts +3 -3
  35. node v14.18/tls.d.ts +109 -27
  36. node v14.18/trace_events.d.ts +3 -3
  37. node v14.18/ts4.8/assert.d.ts +33 -31
  38. node v14.18/ts4.8/async_hooks.d.ts +27 -20
  39. node v14.18/ts4.8/buffer.d.ts +4 -4
  40. node v14.18/ts4.8/child_process.d.ts +191 -62
  41. node v14.18/ts4.8/cluster.d.ts +59 -28
  42. node v14.18/ts4.8/console.d.ts +6 -6
  43. node v14.18/ts4.8/constants.d.ts +12 -11
  44. node v14.18/ts4.8/crypto.d.ts +232 -228
  45. node v14.18/ts4.8/dgram.d.ts +50 -14
  46. node v14.18/ts4.8/dns.d.ts +183 -54
  47. node v14.18/ts4.8/domain.d.ts +4 -4
  48. node v14.18/ts4.8/events.d.ts +4 -4
  49. node v14.18/ts4.8/fs/promises.d.ts +87 -25
  50. node v14.18/ts4.8/fs.d.ts +404 -104
  51. node v14.18/ts4.8/globals.d.ts +33 -16
  52. node v14.18/ts4.8/http.d.ts +200 -200
  53. node v14.18/ts4.8/http2.d.ts +340 -93
  54. node v14.18/ts4.8/https.d.ts +107 -105
  55. node v14.18/ts4.8/inspector.d.ts +4 -4
  56. node v14.18/ts4.8/module.d.ts +4 -4
  57. node v14.18/ts4.8/net.d.ts +27 -12
  58. node v14.18/ts4.8/os.d.ts +4 -4
  59. node v14.18/ts4.8/path.d.ts +5 -5
  60. node v14.18/ts4.8/perf_hooks.d.ts +5 -5
  61. node v14.18/ts4.8/process.d.ts +61 -22
  62. node v14.18/ts4.8/punycode.d.ts +3 -3
  63. node v14.18/ts4.8/querystring.d.ts +15 -5
  64. node v14.18/ts4.8/readline.d.ts +16 -6
  65. node v14.18/ts4.8/repl.d.ts +13 -7
  66. node v14.18/ts4.8/stream.d.ts +160 -100
  67. node v14.18/ts4.8/string_decoder.d.ts +3 -3
  68. node v14.18/ts4.8/timers.d.ts +3 -3
  69. node v14.18/ts4.8/tls.d.ts +109 -27
  70. node v14.18/ts4.8/trace_events.d.ts +3 -3
  71. node v14.18/ts4.8/tty.d.ts +4 -4
  72. node v14.18/ts4.8/url.d.ts +21 -12
  73. node v14.18/ts4.8/util.d.ts +102 -40
  74. node v14.18/ts4.8/v8.d.ts +4 -5
  75. node v14.18/ts4.8/vm.d.ts +7 -7
  76. node v14.18/ts4.8/wasi.d.ts +3 -4
  77. node v14.18/ts4.8/worker_threads.d.ts +8 -8
  78. node v14.18/ts4.8/zlib.d.ts +13 -13
  79. node v14.18/tty.d.ts +4 -4
  80. node v14.18/url.d.ts +21 -12
  81. node v14.18/util.d.ts +102 -40
  82. node v14.18/v8.d.ts +4 -5
  83. node v14.18/vm.d.ts +7 -7
  84. node v14.18/wasi.d.ts +3 -4
  85. node v14.18/worker_threads.d.ts +8 -8
  86. node v14.18/zlib.d.ts +13 -13
@@ -1,5 +1,5 @@
1
- declare module 'node:crypto' {
2
- import * as stream from 'stream';
1
+ declare module "crypto" {
2
+ import * as stream from "stream";
3
3
 
4
4
  interface Certificate {
5
5
  /**
@@ -24,7 +24,7 @@ declare module 'node:crypto' {
24
24
  }
25
25
  const Certificate: Certificate & {
26
26
  /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
27
- new (): Certificate;
27
+ new(): Certificate;
28
28
  /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
29
29
  (): Certificate;
30
30
  };
@@ -140,13 +140,13 @@ declare module 'node:crypto' {
140
140
  function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
141
141
 
142
142
  // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
143
- type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
144
- type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
145
- type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
143
+ type BinaryToTextEncoding = "base64" | "base64url" | "hex";
144
+ type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "latin1";
145
+ type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
146
146
 
147
147
  type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
148
148
 
149
- type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid';
149
+ type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
150
150
 
151
151
  class Hash extends stream.Transform {
152
152
  private constructor();
@@ -164,10 +164,10 @@ declare module 'node:crypto' {
164
164
  digest(encoding: BinaryToTextEncoding): string;
165
165
  }
166
166
 
167
- type KeyObjectType = 'secret' | 'public' | 'private';
167
+ type KeyObjectType = "secret" | "public" | "private";
168
168
 
169
169
  interface KeyExportOptions<T extends KeyFormat> {
170
- type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
170
+ type: "pkcs1" | "spki" | "pkcs8" | "sec1";
171
171
  format: T;
172
172
  cipher?: string | undefined;
173
173
  passphrase?: string | Buffer | undefined;
@@ -181,15 +181,15 @@ declare module 'node:crypto' {
181
181
  * bytes. This property is `undefined` for symmetric keys.
182
182
  */
183
183
  asymmetricKeySize?: number | undefined;
184
- export(options: KeyExportOptions<'pem'>): string | Buffer;
185
- export(options?: KeyExportOptions<'der'>): Buffer;
184
+ export(options: KeyExportOptions<"pem">): string | Buffer;
185
+ export(options?: KeyExportOptions<"der">): Buffer;
186
186
  symmetricKeySize?: number | undefined;
187
187
  type: KeyObjectType;
188
188
  }
189
189
 
190
- type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
191
- type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
192
- type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
190
+ type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
191
+ type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
192
+ type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
193
193
 
194
194
  type BinaryLike = string | NodeJS.ArrayBufferView;
195
195
 
@@ -320,14 +320,14 @@ declare module 'node:crypto' {
320
320
  interface PrivateKeyInput {
321
321
  key: string | Buffer;
322
322
  format?: KeyFormat | undefined;
323
- type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
323
+ type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
324
324
  passphrase?: string | Buffer | undefined;
325
325
  }
326
326
 
327
327
  interface PublicKeyInput {
328
328
  key: string | Buffer;
329
329
  format?: KeyFormat | undefined;
330
- type?: 'pkcs1' | 'spki' | undefined;
330
+ type?: "pkcs1" | "spki" | undefined;
331
331
  }
332
332
 
333
333
  function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
@@ -336,7 +336,7 @@ declare module 'node:crypto' {
336
336
 
337
337
  function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
338
338
 
339
- type DSAEncoding = 'der' | 'ieee-p1363';
339
+ type DSAEncoding = "der" | "ieee-p1363";
340
340
 
341
341
  interface SigningOptions {
342
342
  /**
@@ -408,7 +408,11 @@ declare module 'node:crypto' {
408
408
  generateKeys(encoding: BinaryToTextEncoding): string;
409
409
  computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
410
410
  computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
411
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding: null, outputEncoding: BinaryToTextEncoding): string;
411
+ computeSecret(
412
+ otherPublicKey: NodeJS.ArrayBufferView,
413
+ inputEncoding: null,
414
+ outputEncoding: BinaryToTextEncoding,
415
+ ): string;
412
416
  computeSecret(
413
417
  other_public_key: string,
414
418
  input_encoding: BinaryToTextEncoding,
@@ -457,7 +461,7 @@ declare module 'node:crypto' {
457
461
  (name: string): DiffieHellmanGroup;
458
462
  readonly prototype: DiffieHellmanGroup;
459
463
  }
460
- type DiffieHellmanGroup = Omit<DiffieHellman, 'setPublicKey' | 'setPrivateKey'>;
464
+ type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
461
465
  function getDiffieHellman(groupName: string): DiffieHellmanGroup;
462
466
  /**
463
467
  * An alias for {@link getDiffieHellman}
@@ -579,8 +583,8 @@ declare module 'node:crypto' {
579
583
  key: BinaryLike,
580
584
  curve: string,
581
585
  inputEncoding?: BinaryToTextEncoding,
582
- outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
583
- format?: 'uncompressed' | 'compressed' | 'hybrid',
586
+ outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
587
+ format?: "uncompressed" | "compressed" | "hybrid",
584
588
  ): Buffer | string;
585
589
  generateKeys(): Buffer;
586
590
  generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
@@ -604,8 +608,8 @@ declare module 'node:crypto' {
604
608
  /** @deprecated since v10.0.0 */
605
609
  const DEFAULT_ENCODING: BufferEncoding;
606
610
 
607
- type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
608
- type KeyFormat = 'pem' | 'der';
611
+ type KeyType = "rsa" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
612
+ type KeyFormat = "pem" | "der";
609
613
 
610
614
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
611
615
  format: T;
@@ -684,11 +688,11 @@ declare module 'node:crypto' {
684
688
  publicExponent?: number | undefined;
685
689
 
686
690
  publicKeyEncoding: {
687
- type: 'pkcs1' | 'spki';
691
+ type: "pkcs1" | "spki";
688
692
  format: PubF;
689
693
  };
690
694
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
691
- type: 'pkcs1' | 'pkcs8';
695
+ type: "pkcs1" | "pkcs8";
692
696
  };
693
697
  }
694
698
 
@@ -703,11 +707,11 @@ declare module 'node:crypto' {
703
707
  divisorLength: number;
704
708
 
705
709
  publicKeyEncoding: {
706
- type: 'spki';
710
+ type: "spki";
707
711
  format: PubF;
708
712
  };
709
713
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
710
- type: 'pkcs8';
714
+ type: "pkcs8";
711
715
  };
712
716
  }
713
717
 
@@ -718,51 +722,51 @@ declare module 'node:crypto' {
718
722
  namedCurve: string;
719
723
 
720
724
  publicKeyEncoding: {
721
- type: 'pkcs1' | 'spki';
725
+ type: "pkcs1" | "spki";
722
726
  format: PubF;
723
727
  };
724
728
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
725
- type: 'sec1' | 'pkcs8';
729
+ type: "sec1" | "pkcs8";
726
730
  };
727
731
  }
728
732
 
729
733
  interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
730
734
  publicKeyEncoding: {
731
- type: 'spki';
735
+ type: "spki";
732
736
  format: PubF;
733
737
  };
734
738
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
735
- type: 'pkcs8';
739
+ type: "pkcs8";
736
740
  };
737
741
  }
738
742
 
739
743
  interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
740
744
  publicKeyEncoding: {
741
- type: 'spki';
745
+ type: "spki";
742
746
  format: PubF;
743
747
  };
744
748
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
745
- type: 'pkcs8';
749
+ type: "pkcs8";
746
750
  };
747
751
  }
748
752
 
749
753
  interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
750
754
  publicKeyEncoding: {
751
- type: 'spki';
755
+ type: "spki";
752
756
  format: PubF;
753
757
  };
754
758
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
755
- type: 'pkcs8';
759
+ type: "pkcs8";
756
760
  };
757
761
  }
758
762
 
759
763
  interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
760
764
  publicKeyEncoding: {
761
- type: 'spki';
765
+ type: "spki";
762
766
  format: PubF;
763
767
  };
764
768
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
765
- type: 'pkcs8';
769
+ type: "pkcs8";
766
770
  };
767
771
  }
768
772
 
@@ -772,445 +776,445 @@ declare module 'node:crypto' {
772
776
  }
773
777
 
774
778
  function generateKeyPairSync(
775
- type: 'rsa',
776
- options: RSAKeyPairOptions<'pem', 'pem'>,
779
+ type: "rsa",
780
+ options: RSAKeyPairOptions<"pem", "pem">,
777
781
  ): KeyPairSyncResult<string, string>;
778
782
  function generateKeyPairSync(
779
- type: 'rsa',
780
- options: RSAKeyPairOptions<'pem', 'der'>,
783
+ type: "rsa",
784
+ options: RSAKeyPairOptions<"pem", "der">,
781
785
  ): KeyPairSyncResult<string, Buffer>;
782
786
  function generateKeyPairSync(
783
- type: 'rsa',
784
- options: RSAKeyPairOptions<'der', 'pem'>,
787
+ type: "rsa",
788
+ options: RSAKeyPairOptions<"der", "pem">,
785
789
  ): KeyPairSyncResult<Buffer, string>;
786
790
  function generateKeyPairSync(
787
- type: 'rsa',
788
- options: RSAKeyPairOptions<'der', 'der'>,
791
+ type: "rsa",
792
+ options: RSAKeyPairOptions<"der", "der">,
789
793
  ): KeyPairSyncResult<Buffer, Buffer>;
790
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
794
+ function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
791
795
 
792
796
  function generateKeyPairSync(
793
- type: 'dsa',
794
- options: DSAKeyPairOptions<'pem', 'pem'>,
797
+ type: "dsa",
798
+ options: DSAKeyPairOptions<"pem", "pem">,
795
799
  ): KeyPairSyncResult<string, string>;
796
800
  function generateKeyPairSync(
797
- type: 'dsa',
798
- options: DSAKeyPairOptions<'pem', 'der'>,
801
+ type: "dsa",
802
+ options: DSAKeyPairOptions<"pem", "der">,
799
803
  ): KeyPairSyncResult<string, Buffer>;
800
804
  function generateKeyPairSync(
801
- type: 'dsa',
802
- options: DSAKeyPairOptions<'der', 'pem'>,
805
+ type: "dsa",
806
+ options: DSAKeyPairOptions<"der", "pem">,
803
807
  ): KeyPairSyncResult<Buffer, string>;
804
808
  function generateKeyPairSync(
805
- type: 'dsa',
806
- options: DSAKeyPairOptions<'der', 'der'>,
809
+ type: "dsa",
810
+ options: DSAKeyPairOptions<"der", "der">,
807
811
  ): KeyPairSyncResult<Buffer, Buffer>;
808
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
812
+ function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
809
813
 
810
814
  function generateKeyPairSync(
811
- type: 'ec',
812
- options: ECKeyPairOptions<'pem', 'pem'>,
815
+ type: "ec",
816
+ options: ECKeyPairOptions<"pem", "pem">,
813
817
  ): KeyPairSyncResult<string, string>;
814
818
  function generateKeyPairSync(
815
- type: 'ec',
816
- options: ECKeyPairOptions<'pem', 'der'>,
819
+ type: "ec",
820
+ options: ECKeyPairOptions<"pem", "der">,
817
821
  ): KeyPairSyncResult<string, Buffer>;
818
822
  function generateKeyPairSync(
819
- type: 'ec',
820
- options: ECKeyPairOptions<'der', 'pem'>,
823
+ type: "ec",
824
+ options: ECKeyPairOptions<"der", "pem">,
821
825
  ): KeyPairSyncResult<Buffer, string>;
822
826
  function generateKeyPairSync(
823
- type: 'ec',
824
- options: ECKeyPairOptions<'der', 'der'>,
827
+ type: "ec",
828
+ options: ECKeyPairOptions<"der", "der">,
825
829
  ): KeyPairSyncResult<Buffer, Buffer>;
826
- function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
830
+ function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
827
831
 
828
832
  function generateKeyPairSync(
829
- type: 'ed25519',
830
- options: ED25519KeyPairOptions<'pem', 'pem'>,
833
+ type: "ed25519",
834
+ options: ED25519KeyPairOptions<"pem", "pem">,
831
835
  ): KeyPairSyncResult<string, string>;
832
836
  function generateKeyPairSync(
833
- type: 'ed25519',
834
- options: ED25519KeyPairOptions<'pem', 'der'>,
837
+ type: "ed25519",
838
+ options: ED25519KeyPairOptions<"pem", "der">,
835
839
  ): KeyPairSyncResult<string, Buffer>;
836
840
  function generateKeyPairSync(
837
- type: 'ed25519',
838
- options: ED25519KeyPairOptions<'der', 'pem'>,
841
+ type: "ed25519",
842
+ options: ED25519KeyPairOptions<"der", "pem">,
839
843
  ): KeyPairSyncResult<Buffer, string>;
840
844
  function generateKeyPairSync(
841
- type: 'ed25519',
842
- options: ED25519KeyPairOptions<'der', 'der'>,
845
+ type: "ed25519",
846
+ options: ED25519KeyPairOptions<"der", "der">,
843
847
  ): KeyPairSyncResult<Buffer, Buffer>;
844
- function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
848
+ function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
845
849
 
846
850
  function generateKeyPairSync(
847
- type: 'ed448',
848
- options: ED448KeyPairOptions<'pem', 'pem'>,
851
+ type: "ed448",
852
+ options: ED448KeyPairOptions<"pem", "pem">,
849
853
  ): KeyPairSyncResult<string, string>;
850
854
  function generateKeyPairSync(
851
- type: 'ed448',
852
- options: ED448KeyPairOptions<'pem', 'der'>,
855
+ type: "ed448",
856
+ options: ED448KeyPairOptions<"pem", "der">,
853
857
  ): KeyPairSyncResult<string, Buffer>;
854
858
  function generateKeyPairSync(
855
- type: 'ed448',
856
- options: ED448KeyPairOptions<'der', 'pem'>,
859
+ type: "ed448",
860
+ options: ED448KeyPairOptions<"der", "pem">,
857
861
  ): KeyPairSyncResult<Buffer, string>;
858
862
  function generateKeyPairSync(
859
- type: 'ed448',
860
- options: ED448KeyPairOptions<'der', 'der'>,
863
+ type: "ed448",
864
+ options: ED448KeyPairOptions<"der", "der">,
861
865
  ): KeyPairSyncResult<Buffer, Buffer>;
862
- function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
866
+ function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
863
867
 
864
868
  function generateKeyPairSync(
865
- type: 'x25519',
866
- options: X25519KeyPairOptions<'pem', 'pem'>,
869
+ type: "x25519",
870
+ options: X25519KeyPairOptions<"pem", "pem">,
867
871
  ): KeyPairSyncResult<string, string>;
868
872
  function generateKeyPairSync(
869
- type: 'x25519',
870
- options: X25519KeyPairOptions<'pem', 'der'>,
873
+ type: "x25519",
874
+ options: X25519KeyPairOptions<"pem", "der">,
871
875
  ): KeyPairSyncResult<string, Buffer>;
872
876
  function generateKeyPairSync(
873
- type: 'x25519',
874
- options: X25519KeyPairOptions<'der', 'pem'>,
877
+ type: "x25519",
878
+ options: X25519KeyPairOptions<"der", "pem">,
875
879
  ): KeyPairSyncResult<Buffer, string>;
876
880
  function generateKeyPairSync(
877
- type: 'x25519',
878
- options: X25519KeyPairOptions<'der', 'der'>,
881
+ type: "x25519",
882
+ options: X25519KeyPairOptions<"der", "der">,
879
883
  ): KeyPairSyncResult<Buffer, Buffer>;
880
- function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
884
+ function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
881
885
 
882
886
  function generateKeyPairSync(
883
- type: 'x448',
884
- options: X448KeyPairOptions<'pem', 'pem'>,
887
+ type: "x448",
888
+ options: X448KeyPairOptions<"pem", "pem">,
885
889
  ): KeyPairSyncResult<string, string>;
886
890
  function generateKeyPairSync(
887
- type: 'x448',
888
- options: X448KeyPairOptions<'pem', 'der'>,
891
+ type: "x448",
892
+ options: X448KeyPairOptions<"pem", "der">,
889
893
  ): KeyPairSyncResult<string, Buffer>;
890
894
  function generateKeyPairSync(
891
- type: 'x448',
892
- options: X448KeyPairOptions<'der', 'pem'>,
895
+ type: "x448",
896
+ options: X448KeyPairOptions<"der", "pem">,
893
897
  ): KeyPairSyncResult<Buffer, string>;
894
898
  function generateKeyPairSync(
895
- type: 'x448',
896
- options: X448KeyPairOptions<'der', 'der'>,
899
+ type: "x448",
900
+ options: X448KeyPairOptions<"der", "der">,
897
901
  ): KeyPairSyncResult<Buffer, Buffer>;
898
- function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
902
+ function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
899
903
 
900
904
  function generateKeyPair(
901
- type: 'rsa',
902
- options: RSAKeyPairOptions<'pem', 'pem'>,
905
+ type: "rsa",
906
+ options: RSAKeyPairOptions<"pem", "pem">,
903
907
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
904
908
  ): void;
905
909
  function generateKeyPair(
906
- type: 'rsa',
907
- options: RSAKeyPairOptions<'pem', 'der'>,
910
+ type: "rsa",
911
+ options: RSAKeyPairOptions<"pem", "der">,
908
912
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
909
913
  ): void;
910
914
  function generateKeyPair(
911
- type: 'rsa',
912
- options: RSAKeyPairOptions<'der', 'pem'>,
915
+ type: "rsa",
916
+ options: RSAKeyPairOptions<"der", "pem">,
913
917
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
914
918
  ): void;
915
919
  function generateKeyPair(
916
- type: 'rsa',
917
- options: RSAKeyPairOptions<'der', 'der'>,
920
+ type: "rsa",
921
+ options: RSAKeyPairOptions<"der", "der">,
918
922
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
919
923
  ): void;
920
924
  function generateKeyPair(
921
- type: 'rsa',
925
+ type: "rsa",
922
926
  options: RSAKeyPairKeyObjectOptions,
923
927
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
924
928
  ): void;
925
929
 
926
930
  function generateKeyPair(
927
- type: 'dsa',
928
- options: DSAKeyPairOptions<'pem', 'pem'>,
931
+ type: "dsa",
932
+ options: DSAKeyPairOptions<"pem", "pem">,
929
933
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
930
934
  ): void;
931
935
  function generateKeyPair(
932
- type: 'dsa',
933
- options: DSAKeyPairOptions<'pem', 'der'>,
936
+ type: "dsa",
937
+ options: DSAKeyPairOptions<"pem", "der">,
934
938
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
935
939
  ): void;
936
940
  function generateKeyPair(
937
- type: 'dsa',
938
- options: DSAKeyPairOptions<'der', 'pem'>,
941
+ type: "dsa",
942
+ options: DSAKeyPairOptions<"der", "pem">,
939
943
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
940
944
  ): void;
941
945
  function generateKeyPair(
942
- type: 'dsa',
943
- options: DSAKeyPairOptions<'der', 'der'>,
946
+ type: "dsa",
947
+ options: DSAKeyPairOptions<"der", "der">,
944
948
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
945
949
  ): void;
946
950
  function generateKeyPair(
947
- type: 'dsa',
951
+ type: "dsa",
948
952
  options: DSAKeyPairKeyObjectOptions,
949
953
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
950
954
  ): void;
951
955
 
952
956
  function generateKeyPair(
953
- type: 'ec',
954
- options: ECKeyPairOptions<'pem', 'pem'>,
957
+ type: "ec",
958
+ options: ECKeyPairOptions<"pem", "pem">,
955
959
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
956
960
  ): void;
957
961
  function generateKeyPair(
958
- type: 'ec',
959
- options: ECKeyPairOptions<'pem', 'der'>,
962
+ type: "ec",
963
+ options: ECKeyPairOptions<"pem", "der">,
960
964
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
961
965
  ): void;
962
966
  function generateKeyPair(
963
- type: 'ec',
964
- options: ECKeyPairOptions<'der', 'pem'>,
967
+ type: "ec",
968
+ options: ECKeyPairOptions<"der", "pem">,
965
969
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
966
970
  ): void;
967
971
  function generateKeyPair(
968
- type: 'ec',
969
- options: ECKeyPairOptions<'der', 'der'>,
972
+ type: "ec",
973
+ options: ECKeyPairOptions<"der", "der">,
970
974
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
971
975
  ): void;
972
976
  function generateKeyPair(
973
- type: 'ec',
977
+ type: "ec",
974
978
  options: ECKeyPairKeyObjectOptions,
975
979
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
976
980
  ): void;
977
981
 
978
982
  function generateKeyPair(
979
- type: 'ed25519',
980
- options: ED25519KeyPairOptions<'pem', 'pem'>,
983
+ type: "ed25519",
984
+ options: ED25519KeyPairOptions<"pem", "pem">,
981
985
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
982
986
  ): void;
983
987
  function generateKeyPair(
984
- type: 'ed25519',
985
- options: ED25519KeyPairOptions<'pem', 'der'>,
988
+ type: "ed25519",
989
+ options: ED25519KeyPairOptions<"pem", "der">,
986
990
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
987
991
  ): void;
988
992
  function generateKeyPair(
989
- type: 'ed25519',
990
- options: ED25519KeyPairOptions<'der', 'pem'>,
993
+ type: "ed25519",
994
+ options: ED25519KeyPairOptions<"der", "pem">,
991
995
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
992
996
  ): void;
993
997
  function generateKeyPair(
994
- type: 'ed25519',
995
- options: ED25519KeyPairOptions<'der', 'der'>,
998
+ type: "ed25519",
999
+ options: ED25519KeyPairOptions<"der", "der">,
996
1000
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
997
1001
  ): void;
998
1002
  function generateKeyPair(
999
- type: 'ed25519',
1003
+ type: "ed25519",
1000
1004
  options: ED25519KeyPairKeyObjectOptions | undefined,
1001
1005
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1002
1006
  ): void;
1003
1007
 
1004
1008
  function generateKeyPair(
1005
- type: 'ed448',
1006
- options: ED448KeyPairOptions<'pem', 'pem'>,
1009
+ type: "ed448",
1010
+ options: ED448KeyPairOptions<"pem", "pem">,
1007
1011
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
1008
1012
  ): void;
1009
1013
  function generateKeyPair(
1010
- type: 'ed448',
1011
- options: ED448KeyPairOptions<'pem', 'der'>,
1014
+ type: "ed448",
1015
+ options: ED448KeyPairOptions<"pem", "der">,
1012
1016
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
1013
1017
  ): void;
1014
1018
  function generateKeyPair(
1015
- type: 'ed448',
1016
- options: ED448KeyPairOptions<'der', 'pem'>,
1019
+ type: "ed448",
1020
+ options: ED448KeyPairOptions<"der", "pem">,
1017
1021
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
1018
1022
  ): void;
1019
1023
  function generateKeyPair(
1020
- type: 'ed448',
1021
- options: ED448KeyPairOptions<'der', 'der'>,
1024
+ type: "ed448",
1025
+ options: ED448KeyPairOptions<"der", "der">,
1022
1026
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
1023
1027
  ): void;
1024
1028
  function generateKeyPair(
1025
- type: 'ed448',
1029
+ type: "ed448",
1026
1030
  options: ED448KeyPairKeyObjectOptions | undefined,
1027
1031
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1028
1032
  ): void;
1029
1033
 
1030
1034
  function generateKeyPair(
1031
- type: 'x25519',
1032
- options: X25519KeyPairOptions<'pem', 'pem'>,
1035
+ type: "x25519",
1036
+ options: X25519KeyPairOptions<"pem", "pem">,
1033
1037
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
1034
1038
  ): void;
1035
1039
  function generateKeyPair(
1036
- type: 'x25519',
1037
- options: X25519KeyPairOptions<'pem', 'der'>,
1040
+ type: "x25519",
1041
+ options: X25519KeyPairOptions<"pem", "der">,
1038
1042
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
1039
1043
  ): void;
1040
1044
  function generateKeyPair(
1041
- type: 'x25519',
1042
- options: X25519KeyPairOptions<'der', 'pem'>,
1045
+ type: "x25519",
1046
+ options: X25519KeyPairOptions<"der", "pem">,
1043
1047
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
1044
1048
  ): void;
1045
1049
  function generateKeyPair(
1046
- type: 'x25519',
1047
- options: X25519KeyPairOptions<'der', 'der'>,
1050
+ type: "x25519",
1051
+ options: X25519KeyPairOptions<"der", "der">,
1048
1052
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
1049
1053
  ): void;
1050
1054
  function generateKeyPair(
1051
- type: 'x25519',
1055
+ type: "x25519",
1052
1056
  options: X25519KeyPairKeyObjectOptions | undefined,
1053
1057
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1054
1058
  ): void;
1055
1059
 
1056
1060
  function generateKeyPair(
1057
- type: 'x448',
1058
- options: X448KeyPairOptions<'pem', 'pem'>,
1061
+ type: "x448",
1062
+ options: X448KeyPairOptions<"pem", "pem">,
1059
1063
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
1060
1064
  ): void;
1061
1065
  function generateKeyPair(
1062
- type: 'x448',
1063
- options: X448KeyPairOptions<'pem', 'der'>,
1066
+ type: "x448",
1067
+ options: X448KeyPairOptions<"pem", "der">,
1064
1068
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
1065
1069
  ): void;
1066
1070
  function generateKeyPair(
1067
- type: 'x448',
1068
- options: X448KeyPairOptions<'der', 'pem'>,
1071
+ type: "x448",
1072
+ options: X448KeyPairOptions<"der", "pem">,
1069
1073
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
1070
1074
  ): void;
1071
1075
  function generateKeyPair(
1072
- type: 'x448',
1073
- options: X448KeyPairOptions<'der', 'der'>,
1076
+ type: "x448",
1077
+ options: X448KeyPairOptions<"der", "der">,
1074
1078
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
1075
1079
  ): void;
1076
1080
  function generateKeyPair(
1077
- type: 'x448',
1081
+ type: "x448",
1078
1082
  options: X448KeyPairKeyObjectOptions | undefined,
1079
1083
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1080
1084
  ): void;
1081
1085
 
1082
1086
  namespace generateKeyPair {
1083
1087
  function __promisify__(
1084
- type: 'rsa',
1085
- options: RSAKeyPairOptions<'pem', 'pem'>,
1088
+ type: "rsa",
1089
+ options: RSAKeyPairOptions<"pem", "pem">,
1086
1090
  ): Promise<{ publicKey: string; privateKey: string }>;
1087
1091
  function __promisify__(
1088
- type: 'rsa',
1089
- options: RSAKeyPairOptions<'pem', 'der'>,
1092
+ type: "rsa",
1093
+ options: RSAKeyPairOptions<"pem", "der">,
1090
1094
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1091
1095
  function __promisify__(
1092
- type: 'rsa',
1093
- options: RSAKeyPairOptions<'der', 'pem'>,
1096
+ type: "rsa",
1097
+ options: RSAKeyPairOptions<"der", "pem">,
1094
1098
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1095
1099
  function __promisify__(
1096
- type: 'rsa',
1097
- options: RSAKeyPairOptions<'der', 'der'>,
1100
+ type: "rsa",
1101
+ options: RSAKeyPairOptions<"der", "der">,
1098
1102
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1099
- function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1103
+ function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1100
1104
 
1101
1105
  function __promisify__(
1102
- type: 'dsa',
1103
- options: DSAKeyPairOptions<'pem', 'pem'>,
1106
+ type: "dsa",
1107
+ options: DSAKeyPairOptions<"pem", "pem">,
1104
1108
  ): Promise<{ publicKey: string; privateKey: string }>;
1105
1109
  function __promisify__(
1106
- type: 'dsa',
1107
- options: DSAKeyPairOptions<'pem', 'der'>,
1110
+ type: "dsa",
1111
+ options: DSAKeyPairOptions<"pem", "der">,
1108
1112
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1109
1113
  function __promisify__(
1110
- type: 'dsa',
1111
- options: DSAKeyPairOptions<'der', 'pem'>,
1114
+ type: "dsa",
1115
+ options: DSAKeyPairOptions<"der", "pem">,
1112
1116
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1113
1117
  function __promisify__(
1114
- type: 'dsa',
1115
- options: DSAKeyPairOptions<'der', 'der'>,
1118
+ type: "dsa",
1119
+ options: DSAKeyPairOptions<"der", "der">,
1116
1120
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1117
- function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1121
+ function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1118
1122
 
1119
1123
  function __promisify__(
1120
- type: 'ec',
1121
- options: ECKeyPairOptions<'pem', 'pem'>,
1124
+ type: "ec",
1125
+ options: ECKeyPairOptions<"pem", "pem">,
1122
1126
  ): Promise<{ publicKey: string; privateKey: string }>;
1123
1127
  function __promisify__(
1124
- type: 'ec',
1125
- options: ECKeyPairOptions<'pem', 'der'>,
1128
+ type: "ec",
1129
+ options: ECKeyPairOptions<"pem", "der">,
1126
1130
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1127
1131
  function __promisify__(
1128
- type: 'ec',
1129
- options: ECKeyPairOptions<'der', 'pem'>,
1132
+ type: "ec",
1133
+ options: ECKeyPairOptions<"der", "pem">,
1130
1134
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1131
1135
  function __promisify__(
1132
- type: 'ec',
1133
- options: ECKeyPairOptions<'der', 'der'>,
1136
+ type: "ec",
1137
+ options: ECKeyPairOptions<"der", "der">,
1134
1138
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1135
- function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1139
+ function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1136
1140
 
1137
1141
  function __promisify__(
1138
- type: 'ed25519',
1139
- options: ED25519KeyPairOptions<'pem', 'pem'>,
1142
+ type: "ed25519",
1143
+ options: ED25519KeyPairOptions<"pem", "pem">,
1140
1144
  ): Promise<{ publicKey: string; privateKey: string }>;
1141
1145
  function __promisify__(
1142
- type: 'ed25519',
1143
- options: ED25519KeyPairOptions<'pem', 'der'>,
1146
+ type: "ed25519",
1147
+ options: ED25519KeyPairOptions<"pem", "der">,
1144
1148
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1145
1149
  function __promisify__(
1146
- type: 'ed25519',
1147
- options: ED25519KeyPairOptions<'der', 'pem'>,
1150
+ type: "ed25519",
1151
+ options: ED25519KeyPairOptions<"der", "pem">,
1148
1152
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1149
1153
  function __promisify__(
1150
- type: 'ed25519',
1151
- options: ED25519KeyPairOptions<'der', 'der'>,
1154
+ type: "ed25519",
1155
+ options: ED25519KeyPairOptions<"der", "der">,
1152
1156
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1153
1157
  function __promisify__(
1154
- type: 'ed25519',
1158
+ type: "ed25519",
1155
1159
  options?: ED25519KeyPairKeyObjectOptions,
1156
1160
  ): Promise<KeyPairKeyObjectResult>;
1157
1161
 
1158
1162
  function __promisify__(
1159
- type: 'ed448',
1160
- options: ED448KeyPairOptions<'pem', 'pem'>,
1163
+ type: "ed448",
1164
+ options: ED448KeyPairOptions<"pem", "pem">,
1161
1165
  ): Promise<{ publicKey: string; privateKey: string }>;
1162
1166
  function __promisify__(
1163
- type: 'ed448',
1164
- options: ED448KeyPairOptions<'pem', 'der'>,
1167
+ type: "ed448",
1168
+ options: ED448KeyPairOptions<"pem", "der">,
1165
1169
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1166
1170
  function __promisify__(
1167
- type: 'ed448',
1168
- options: ED448KeyPairOptions<'der', 'pem'>,
1171
+ type: "ed448",
1172
+ options: ED448KeyPairOptions<"der", "pem">,
1169
1173
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1170
1174
  function __promisify__(
1171
- type: 'ed448',
1172
- options: ED448KeyPairOptions<'der', 'der'>,
1175
+ type: "ed448",
1176
+ options: ED448KeyPairOptions<"der", "der">,
1173
1177
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1174
- function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1178
+ function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1175
1179
 
1176
1180
  function __promisify__(
1177
- type: 'x25519',
1178
- options: X25519KeyPairOptions<'pem', 'pem'>,
1181
+ type: "x25519",
1182
+ options: X25519KeyPairOptions<"pem", "pem">,
1179
1183
  ): Promise<{ publicKey: string; privateKey: string }>;
1180
1184
  function __promisify__(
1181
- type: 'x25519',
1182
- options: X25519KeyPairOptions<'pem', 'der'>,
1185
+ type: "x25519",
1186
+ options: X25519KeyPairOptions<"pem", "der">,
1183
1187
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1184
1188
  function __promisify__(
1185
- type: 'x25519',
1186
- options: X25519KeyPairOptions<'der', 'pem'>,
1189
+ type: "x25519",
1190
+ options: X25519KeyPairOptions<"der", "pem">,
1187
1191
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1188
1192
  function __promisify__(
1189
- type: 'x25519',
1190
- options: X25519KeyPairOptions<'der', 'der'>,
1193
+ type: "x25519",
1194
+ options: X25519KeyPairOptions<"der", "der">,
1191
1195
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1192
1196
  function __promisify__(
1193
- type: 'x25519',
1197
+ type: "x25519",
1194
1198
  options?: X25519KeyPairKeyObjectOptions,
1195
1199
  ): Promise<KeyPairKeyObjectResult>;
1196
1200
 
1197
1201
  function __promisify__(
1198
- type: 'x448',
1199
- options: X448KeyPairOptions<'pem', 'pem'>,
1202
+ type: "x448",
1203
+ options: X448KeyPairOptions<"pem", "pem">,
1200
1204
  ): Promise<{ publicKey: string; privateKey: string }>;
1201
1205
  function __promisify__(
1202
- type: 'x448',
1203
- options: X448KeyPairOptions<'pem', 'der'>,
1206
+ type: "x448",
1207
+ options: X448KeyPairOptions<"pem", "der">,
1204
1208
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1205
1209
  function __promisify__(
1206
- type: 'x448',
1207
- options: X448KeyPairOptions<'der', 'pem'>,
1210
+ type: "x448",
1211
+ options: X448KeyPairOptions<"der", "pem">,
1208
1212
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1209
1213
  function __promisify__(
1210
- type: 'x448',
1211
- options: X448KeyPairOptions<'der', 'der'>,
1214
+ type: "x448",
1215
+ options: X448KeyPairOptions<"der", "der">,
1212
1216
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1213
- function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1217
+ function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1214
1218
  }
1215
1219
 
1216
1220
  /**
@@ -1278,6 +1282,6 @@ declare module 'node:crypto' {
1278
1282
  */
1279
1283
  function setEngine(engine: string, flags?: number): void;
1280
1284
  }
1281
- declare module 'crypto' {
1282
- export * from 'node:crypto';
1285
+ declare module "node:crypto" {
1286
+ export * from "crypto";
1283
1287
  }