mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 19:50:34 +00:00
6 lines
329 B
TypeScript
6 lines
329 B
TypeScript
type Ipv4Address = `${number}.${number}.${number}.${number}`;
|
|
type Ipv6Address = string;
|
|
declare function isIpAddress(ip: string): ip is Ipv4Address | Ipv6Address;
|
|
declare function assertIpAddress(ip: string): asserts ip is Ipv4Address | Ipv6Address;
|
|
|
|
export { type Ipv4Address, type Ipv6Address, assertIpAddress, isIpAddress };
|