/** Validate and return an opaque API resource id for use as one URL segment. */ export declare function resourceIdSegment(value: string, label?: string): string; /** Validate a numeric TCP port before using it as a URL path segment. */ export declare function portSegment(value: unknown): string;