common.d.ts 737 B

123456789101112131415
  1. import { Address4 } from './ipv4';
  2. import { Address6 } from './ipv6';
  3. export interface ReverseFormOptions {
  4. omitSuffix?: boolean;
  5. }
  6. export declare function isInSubnet(this: Address4 | Address6, address: Address4 | Address6): boolean;
  7. export declare function isCorrect(defaultBits: number): (this: Address4 | Address6) => boolean;
  8. export declare function numberToPaddedHex(number: number): string;
  9. export declare function stringToPaddedHex(numberString: string): string;
  10. /**
  11. * @param binaryValue Binary representation of a value (e.g. `10`)
  12. * @param position Byte position, where 0 is the least significant bit
  13. */
  14. export declare function testBit(binaryValue: string, position: number): boolean;
  15. //# sourceMappingURL=common.d.ts.map