eigent/package/@stackframe/stack-shared/dist/utils/ips.d.ts
2025-08-12 01:16:39 +02:00

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 };