This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@homebridge/ciao/lib/util/domain-formatter.d.ts
T

42 lines
1.5 KiB
TypeScript

import { ServiceType } from "../CiaoService";
import { Protocol } from "../index";
export interface PTRQueryDomain {
domain: string;
protocol: Protocol;
type: ServiceType | string;
}
export interface InstanceNameDomain {
domain: string;
protocol: Protocol;
type: ServiceType | string;
name: string;
}
export interface SubTypedNameDomain {
domain: string;
protocol: Protocol;
type: ServiceType | string;
subtype: ServiceType | string;
}
export interface FQDNParts {
name?: string;
type: ServiceType | string;
protocol?: Protocol;
domain?: string;
}
export interface SubTypePTRParts {
subtype: ServiceType | string;
type: ServiceType | string;
protocol?: Protocol;
domain?: string;
}
export declare function parseFQDN(fqdn: string): PTRQueryDomain | InstanceNameDomain | SubTypedNameDomain;
export declare function stringify(parts: FQDNParts | SubTypePTRParts): string;
export declare function formatHostname(hostname: string, domain?: string): string;
export declare function removeTLD(hostname: string): string;
export declare function formatMappedIPv4Address(address: string): string;
export declare function enlargeIPv6(address: string): string;
export declare function shortenIPv6(address: string | string[]): string;
export declare function formatReverseAddressPTRName(address: string): string;
export declare function ipAddressFromReversAddressName(name: string): string;
export declare function getNetAddress(address: string, netmask: string): string;
//# sourceMappingURL=domain-formatter.d.ts.map