/** * Server name rules: the single source for the CLI, API and console. * * New names are DNS-1123 labels that start with a letter, so the runtime's * workload name (infrastructure/adapters/workloadNames.ts) stays a valid * container and Kubernetes resource name (<= 63 chars, with room for * pod/StatefulSet suffixes). */ export declare const SERVER_NAME_MIN_LENGTH = 2; export declare const SERVER_NAME_MAX_LENGTH = 32; /** Names whose runtime workload collides with a platform service. */ export declare const RESERVED_SERVER_NAMES: readonly string[]; /** The whole new-name rule as one regex, for JSON schemas and clients. */ export declare const SERVER_NAME_PATTERN: RegExp; /** * Names that servers created before the unified rule may carry (the old * API/actions rule). Path- and shell-safe; operations on existing servers * accept these and only warn, creation requires SERVER_NAME_PATTERN. */ export declare const EXISTING_SERVER_NAME_PATTERN: RegExp; /** * ServerName Value Object * Represents a validated Minecraft server name */ export declare class ServerName { private readonly _value; private constructor(); get value(): string; /** * Why a new server name is invalid, or undefined when it is valid. * Checks the exact string; create() trims and lowercases first. */ static validate(value: string): string | undefined; /** A new server name (strict rule). */ static create(value: string): ServerName; /** * The name of a server that already exists. Accepts names that predate the * strict rule unchanged (callers may warn via validate()); rejects only * names that are unsafe to use in paths or commands. */ static fromExisting(value: string): ServerName; equals(other: ServerName): boolean; toString(): string; } //# sourceMappingURL=ServerName.d.ts.map