import { z } from 'zod'; declare const SYNC_SYNCED = "synced"; declare const SYNC_PENDING_PUSH = "pending_push"; declare const SYNC_PENDING_DELETE = "pending_delete"; declare const SYNC_CONFLICT = "conflict"; declare const SYNC_ERROR = "error"; declare const CERT_OK = "ok"; declare const CERT_WARNING = "warning"; declare const CERT_EXPIRED = "expired"; declare const CERT_ERROR = "error"; declare const CERT_UNKNOWN = "unknown"; declare const CERT_MONITOR_AUTO = "auto"; declare const CERT_MONITOR_REQUIRED = "required"; declare const CERT_MONITOR_SKIPPED = "skipped"; declare const CERT_MONITORING_VALUES: readonly ["auto", "required", "skipped"]; interface ServiceGroup$1 { id: number; name: string; type: string; icon: string | null; domain: string | null; enabled: boolean; lb_mode: LbMode; health_check_enabled: boolean; health_check_type: HealthCheckType; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; created_at: string; updated_at: string; } interface Subdomain { id: number; domain_id: number; name: string; fqdn: string; enabled: boolean; cert_monitoring: string; created_at: string; updated_at: string; } interface ServiceBinding { id: number; domain_id: number; service_id: number; hostname: string; cname_target: string | null; dns_record_id: number | null; lb_mode: LbMode; health_check_enabled: boolean; health_check_type: HealthCheckType; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; created_at: string; updated_at: string; } interface ServiceBindingView { id: number; domain_id: number; service_id: number; hostname: string; dns_record_id: number | null; zone_name: string; group_id: number | null; group_name: string | null; service_name: string; service_slug: string; target_ip: string | null; target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; lb_mode: LbMode; health_check_enabled: boolean; health_check_type: HealthCheckType; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; created_at: string; updated_at: string; } interface ServiceDomainBindingView { binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; record_type: "A" | "CNAME"; target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; target_cname: string | null; lb_mode: LbMode; health_check_enabled: boolean; health_check_type: HealthCheckType; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; } interface SyncJob { id: string; status: string; domain_id: number | null; message: string | null; created_at: string; finished_at: string | null; } interface CfZone { id: string; name: string; status: string; } interface CfDnsRecord { id?: string; type: string; name: string; content: string; ttl: number; proxied?: boolean; priority?: number; } interface CreateDnsRecordPayload { type: string; name: string; content: string; ttl: number; proxied?: boolean; priority?: number; } interface LoginRequest { username: string; password: string; } interface LoginResponse { token: string; expires_at: string; } interface JwtClaims { sub: string; exp: number; } type LbMode = "round_robin" | "failover" | "weighted"; type HealthCheckType = "tcp" | "http"; type IpHealthState = "up" | "down" | "degraded" | "unknown"; type HealthCheckScope = "binding" | "group"; interface IpHealthStatus { scope: HealthCheckScope; ref_id: number; ip: string; status: IpHealthState; latency_ms: number | null; consecutive_failures: number; last_checked_at: string | null; last_error: string | null; } interface HealthCheckTarget { scope: HealthCheckScope; ref_id: number; ip: string; hostname: string; type: HealthCheckType; port: number | null; path: string | null; expected_status: number | null; timeout_ms: number; } declare class ValidationError extends Error { constructor(message: string); } declare function validateDnsRecord(recordType: string, name: string, content: string, ttl: number, proxied: boolean): void; declare function certStatusFromExpiry(daysLeft: number): string; declare function shouldMonitorService(service: { enabled?: boolean; service_group_id?: number | null; }, group?: Pick | null): boolean; declare function isValidIpv4(ip: string): boolean; declare function dnsNameToSubdomainLabel(recordName: string, zoneName: string): string | null; declare function subdomainLabelToFqdn(label: string, zoneName: string): string; /** Canonical DNS record name as returned by Cloudflare for a zone. */ declare function normalizeDnsRecordName(recordName: string, zoneName: string): string; declare function dnsRecordNamesMatch(left: string, right: string, zoneName: string): boolean; interface ParsedFqdn { zoneName: string; hostname: string; fqdn: string; } declare function fqdnToDisplay(hostname: string, zoneName: string): string; declare function parseFqdn(fqdn: string, knownZones: string[]): ParsedFqdn | null; declare function bindingToFqdn(binding: { hostname: string; zone_name: string; fqdn?: string; }): string; declare const certMonitoringSchema: z.ZodEnum<{ auto: "auto"; required: "required"; skipped: "skipped"; }>; type CertMonitoring = z.infer; declare const lbModeSchema: z.ZodEnum<{ round_robin: "round_robin"; failover: "failover"; weighted: "weighted"; }>; declare const healthCheckTypeSchema: z.ZodEnum<{ tcp: "tcp"; http: "http"; }>; declare const ipHealthStateSchema: z.ZodEnum<{ unknown: "unknown"; up: "up"; down: "down"; degraded: "degraded"; }>; declare const healthCheckScopeSchema: z.ZodEnum<{ binding: "binding"; group: "group"; }>; declare const ipHealthStatusSchema: z.ZodObject<{ scope: z.ZodEnum<{ binding: "binding"; group: "group"; }>; ref_id: z.ZodNumber; ip: z.ZodString; status: z.ZodEnum<{ unknown: "unknown"; up: "up"; down: "down"; degraded: "degraded"; }>; latency_ms: z.ZodNullable; consecutive_failures: z.ZodNumber; last_checked_at: z.ZodNullable; last_error: z.ZodNullable; }, z.core.$strip>; declare const groupSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; declare const groupWithStatsSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; domain_count: z.ZodNumber; }, z.core.$strip>; declare const serviceGroupTypeSchema: z.ZodEnum<{ vpn: "vpn"; network: "network"; internet: "internet"; bgp: "bgp"; custom: "custom"; }>; declare const serviceGroupSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodCatch>; icon: z.ZodNullable; domain: z.ZodNullable; enabled: z.ZodCoercedBoolean; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; declare const serviceSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; service_group_id: z.ZodOptional>; subdomain: z.ZodOptional; enabled: z.ZodOptional>; computed_fqdn: z.ZodOptional>; lb_weight: z.ZodDefault; lb_priority: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; declare const serviceDomainBindingSchema: z.ZodPipe>; target_ips: z.ZodOptional>; target_ip: z.ZodOptional>; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; target_cname: z.ZodOptional>; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; sync_status: z.ZodNullable; }, z.core.$strip>, z.ZodTransform<{ target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; target_cname: string | null; record_type: "A" | "CNAME"; binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ip?: string | null | undefined; }, { binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; record_type: "A" | "CNAME"; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ips?: string[] | undefined; target_ip?: string | null | undefined; target_ip_weights?: Record | undefined; target_ip_priorities?: Record | undefined; target_cname?: string | null | undefined; }>>; declare const serviceViewSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; service_group_id: z.ZodOptional>; computed_fqdn: z.ZodOptional>; lb_weight: z.ZodDefault; lb_priority: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; subdomain: z.ZodDefault; enabled: z.ZodDefault>; ips: z.ZodDefault>; domains: z.ZodDefault>; target_ips: z.ZodOptional>; target_ip: z.ZodOptional>; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; target_cname: z.ZodOptional>; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; sync_status: z.ZodNullable; }, z.core.$strip>, z.ZodTransform<{ target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; target_cname: string | null; record_type: "A" | "CNAME"; binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ip?: string | null | undefined; }, { binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; record_type: "A" | "CNAME"; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ips?: string[] | undefined; target_ip?: string | null | undefined; target_ip_weights?: Record | undefined; target_ip_priorities?: Record | undefined; target_cname?: string | null | undefined; }>>>>; }, z.core.$strip>; declare const serviceGroupViewSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodCatch>; icon: z.ZodNullable; domain: z.ZodNullable; enabled: z.ZodCoercedBoolean; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; services: z.ZodDefault>; computed_fqdn: z.ZodOptional>; lb_weight: z.ZodDefault; lb_priority: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; subdomain: z.ZodDefault; enabled: z.ZodDefault>; ips: z.ZodDefault>; domains: z.ZodDefault>; target_ips: z.ZodOptional>; target_ip: z.ZodOptional>; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; target_cname: z.ZodOptional>; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; sync_status: z.ZodNullable; }, z.core.$strip>, z.ZodTransform<{ target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; target_cname: string | null; record_type: "A" | "CNAME"; binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ip?: string | null | undefined; }, { binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; record_type: "A" | "CNAME"; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ips?: string[] | undefined; target_ip?: string | null | undefined; target_ip_weights?: Record | undefined; target_ip_priorities?: Record | undefined; target_cname?: string | null | undefined; }>>>>; }, z.core.$strip>>>; }, z.core.$strip>; declare const serviceGroupsResponseSchema: z.ZodObject<{ groups: z.ZodDefault>; icon: z.ZodNullable; domain: z.ZodNullable; enabled: z.ZodCoercedBoolean; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; services: z.ZodDefault>; computed_fqdn: z.ZodOptional>; lb_weight: z.ZodDefault; lb_priority: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; subdomain: z.ZodDefault; enabled: z.ZodDefault>; ips: z.ZodDefault>; domains: z.ZodDefault>; target_ips: z.ZodOptional>; target_ip: z.ZodOptional>; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; target_cname: z.ZodOptional>; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; sync_status: z.ZodNullable; }, z.core.$strip>, z.ZodTransform<{ target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; target_cname: string | null; record_type: "A" | "CNAME"; binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ip?: string | null | undefined; }, { binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; record_type: "A" | "CNAME"; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ips?: string[] | undefined; target_ip?: string | null | undefined; target_ip_weights?: Record | undefined; target_ip_priorities?: Record | undefined; target_cname?: string | null | undefined; }>>>>; }, z.core.$strip>>>; }, z.core.$strip>>>; ungrouped: z.ZodDefault>; computed_fqdn: z.ZodOptional>; lb_weight: z.ZodDefault; lb_priority: z.ZodDefault; created_at: z.ZodString; updated_at: z.ZodString; subdomain: z.ZodDefault; enabled: z.ZodDefault>; ips: z.ZodDefault>; domains: z.ZodDefault>; target_ips: z.ZodOptional>; target_ip: z.ZodOptional>; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; target_cname: z.ZodOptional>; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; sync_status: z.ZodNullable; }, z.core.$strip>, z.ZodTransform<{ target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; target_cname: string | null; record_type: "A" | "CNAME"; binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ip?: string | null | undefined; }, { binding_id: number; domain_id: number; zone_name: string; hostname: string; fqdn: string; record_type: "A" | "CNAME"; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; target_ips?: string[] | undefined; target_ip?: string | null | undefined; target_ip_weights?: Record | undefined; target_ip_priorities?: Record | undefined; target_cname?: string | null | undefined; }>>>>; }, z.core.$strip>>>; }, z.core.$strip>; declare const domainSchema: z.ZodObject<{ id: z.ZodNumber; group_id: z.ZodNullable; zone_name: z.ZodString; cf_zone_id: z.ZodString; status: z.ZodString; cert_monitoring: z.ZodDefault>; last_synced_at: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; declare const domainListItemSchema: z.ZodObject<{ id: z.ZodNumber; group_id: z.ZodNullable; zone_name: z.ZodString; cf_zone_id: z.ZodString; status: z.ZodString; cert_monitoring: z.ZodDefault>; last_synced_at: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; group_name: z.ZodNullable; service_count: z.ZodNumber; }, z.core.$strip>; declare const serviceBindingSchema: z.ZodPipe; zone_name: z.ZodString; group_id: z.ZodNullable; group_name: z.ZodNullable; service_name: z.ZodString; service_slug: z.ZodString; target_ip: z.ZodNullable; target_ips: z.ZodOptional>; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; lb_mode: z.ZodCatch>; health_check_enabled: z.ZodDefault>; health_check_type: z.ZodCatch>; health_check_port: z.ZodNullable; health_check_path: z.ZodNullable; health_check_expected_status: z.ZodNullable; health_check_interval_sec: z.ZodDefault; health_check_timeout_ms: z.ZodDefault; sync_status: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ target_ips: string[]; target_ip_weights: Record; target_ip_priorities: Record; id: number; domain_id: number; service_id: number; hostname: string; dns_record_id: number | null; zone_name: string; group_id: number | null; group_name: string | null; service_name: string; service_slug: string; target_ip: string | null; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; created_at: string; updated_at: string; }, { id: number; domain_id: number; service_id: number; hostname: string; dns_record_id: number | null; zone_name: string; group_id: number | null; group_name: string | null; service_name: string; service_slug: string; target_ip: string | null; lb_mode: "round_robin" | "failover" | "weighted"; health_check_enabled: boolean; health_check_type: "tcp" | "http"; health_check_port: number | null; health_check_path: string | null; health_check_expected_status: number | null; health_check_interval_sec: number; health_check_timeout_ms: number; sync_status: string | null; created_at: string; updated_at: string; target_ips?: string[] | undefined; target_ip_weights?: Record | undefined; target_ip_priorities?: Record | undefined; }>>; declare const dnsRecordSchema: z.ZodObject<{ id: z.ZodNumber; domain_id: z.ZodNumber; cf_record_id: z.ZodNullable; record_type: z.ZodString; name: z.ZodString; content: z.ZodString; ttl: z.ZodNumber; proxied: z.ZodBoolean; priority: z.ZodNullable; sync_status: z.ZodString; origin: z.ZodString; last_error: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; declare const certificateSchema: z.ZodObject<{ id: z.ZodNumber; domain_id: z.ZodNumber; subdomain_id: z.ZodNullable; hostname: z.ZodString; expires_at: z.ZodNullable; last_checked_at: z.ZodNullable; last_error: z.ZodNullable; status: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; type Group = z.infer; type GroupWithStats = z.infer; type Service = z.infer; type ServiceDomainBinding = z.infer; type ServiceView = z.infer; type ServiceGroup = z.infer; type ServiceGroupView = z.infer; type ServiceGroupsResponse = z.infer; type Domain = z.infer; type DomainListItem = z.infer; type DnsRecord = z.infer; type Certificate = z.infer; declare const createGroupSchema: z.ZodObject<{ name: z.ZodString; slug: z.ZodString; }, z.core.$strip>; declare const healthCheckConfigSchema: z.ZodObject<{ health_check_enabled: z.ZodOptional; health_check_type: z.ZodOptional>; health_check_port: z.ZodOptional>; health_check_path: z.ZodOptional>; health_check_expected_status: z.ZodOptional>; health_check_interval_sec: z.ZodOptional; health_check_timeout_ms: z.ZodOptional; }, z.core.$strip>; type HealthCheckConfig = z.infer; declare const createServiceSchema: z.ZodObject<{ name: z.ZodString; slug: z.ZodString; }, z.core.$strip>; declare const createServiceWithConfigSchema: z.ZodObject<{ name: z.ZodString; slug: z.ZodString; service_group_id: z.ZodOptional>; ips: z.ZodDefault>; lb_weight: z.ZodOptional; lb_priority: z.ZodOptional; domains: z.ZodDefault; health_check_type: z.ZodOptional>; health_check_port: z.ZodOptional>; health_check_path: z.ZodOptional>; health_check_expected_status: z.ZodOptional>; health_check_interval_sec: z.ZodOptional; health_check_timeout_ms: z.ZodOptional; fqdn: z.ZodString; target_ips: z.ZodOptional>; target_cname: z.ZodOptional; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; lb_mode: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; declare const createServiceBindingSchema: z.ZodObject<{ domain_id: z.ZodString; service_id: z.ZodString; hostname: z.ZodOptional; target_ip: z.ZodOptional; }, z.core.$strip>; declare const updateDomainGroupSchema: z.ZodObject<{ group_id: z.ZodNullable; status: z.ZodOptional; }, z.core.$strip>; declare const createDomainSchema: z.ZodObject<{ zone_name: z.ZodString; group_id: z.ZodString; }, z.core.$strip>; declare const loginSchema: z.ZodObject<{ username: z.ZodString; password: z.ZodString; }, z.core.$strip>; declare const createDnsRecordSchema: z.ZodObject<{ record_type: z.ZodEnum<{ A: "A"; CNAME: "CNAME"; AAAA: "AAAA"; TXT: "TXT"; MX: "MX"; }>; name: z.ZodString; content: z.ZodString; ttl: z.ZodNumber; proxied: z.ZodBoolean; }, z.core.$strip>; declare const subdomainSchema: z.ZodObject<{ id: z.ZodNumber; domain_id: z.ZodNumber; name: z.ZodString; fqdn: z.ZodString; enabled: z.ZodBoolean; cert_monitoring: z.ZodDefault>; created_at: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; type SubdomainRecord = z.infer; declare const createSubdomainSchema: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; declare const updateSubdomainSchema: z.ZodObject<{ name: z.ZodOptional; enabled: z.ZodOptional; cert_monitoring: z.ZodOptional>; }, z.core.$strip>; declare const updateDomainSchema: z.ZodObject<{ group_id: z.ZodOptional>; status: z.ZodOptional; cert_monitoring: z.ZodOptional>; }, z.core.$strip>; type CreateSubdomainInput = z.infer; type UpdateSubdomainInput = z.infer; type UpdateDomainInput = z.infer; type CreateGroupInput = z.infer; type CreateServiceInput = z.infer; type CreateServiceWithConfigInput = z.infer; declare const updateServiceConfigSchema: z.ZodObject<{ name: z.ZodOptional; slug: z.ZodOptional; service_group_id: z.ZodOptional>; ips: z.ZodOptional>; lb_weight: z.ZodOptional; lb_priority: z.ZodOptional; domains: z.ZodOptional; health_check_type: z.ZodOptional>; health_check_port: z.ZodOptional>; health_check_path: z.ZodOptional>; health_check_expected_status: z.ZodOptional>; health_check_interval_sec: z.ZodOptional; health_check_timeout_ms: z.ZodOptional; fqdn: z.ZodString; target_ips: z.ZodOptional>; target_cname: z.ZodOptional; target_ip_weights: z.ZodOptional>; target_ip_priorities: z.ZodOptional>; lb_mode: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type UpdateServiceConfigInput = z.infer; declare const createServiceGroupSchema: z.ZodObject<{ health_check_enabled: z.ZodOptional; health_check_type: z.ZodOptional>; health_check_port: z.ZodOptional>; health_check_path: z.ZodOptional>; health_check_expected_status: z.ZodOptional>; health_check_interval_sec: z.ZodOptional; health_check_timeout_ms: z.ZodOptional; name: z.ZodString; type: z.ZodDefault>; icon: z.ZodOptional>; domain: z.ZodOptional>; lb_mode: z.ZodOptional>; }, z.core.$strip>; declare const updateServiceGroupSchema: z.ZodObject<{ health_check_enabled: z.ZodOptional; health_check_type: z.ZodOptional>; health_check_port: z.ZodOptional>; health_check_path: z.ZodOptional>; health_check_expected_status: z.ZodOptional>; health_check_interval_sec: z.ZodOptional; health_check_timeout_ms: z.ZodOptional; name: z.ZodOptional; type: z.ZodOptional>; icon: z.ZodOptional>; domain: z.ZodOptional>; lb_mode: z.ZodOptional>; }, z.core.$strip>; type UpdateServiceGroupInput = z.infer; declare const toggleEnabledSchema: z.ZodObject<{ enabled: z.ZodBoolean; }, z.core.$strip>; declare const reorderServicesSchema: z.ZodObject<{ group_id: z.ZodDefault>>; service_ids: z.ZodArray; }, z.core.$strip>; declare const healthStatusQuerySchema: z.ZodObject<{ scope: z.ZodEnum<{ binding: "binding"; group: "group"; }>; ref_id: z.ZodCoercedNumber; }, z.core.$strip>; type HealthStatusQuery = z.infer; type CreateServiceGroupInput = z.infer; type ToggleEnabledInput = z.infer; type ReorderServicesInput = z.infer; type CreateServiceBindingInput = z.infer; type CreateDomainInput = z.infer; type LoginInput = z.infer; type CreateDnsRecordInput = z.infer; declare const appSwitcherIconSchema: z.ZodEnum<{ server: "server"; cloud: "cloud"; globe: "globe"; dashboard: "dashboard"; chart: "chart"; }>; declare const appSwitcherEntrySchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; subtitle: z.ZodOptional; url: z.ZodString; icon: z.ZodDefault>; shortcut: z.ZodOptional; }, z.core.$strip>; declare const appSwitcherConfigSchema: z.ZodObject<{ menuLabel: z.ZodDefault; apps: z.ZodArray; url: z.ZodString; icon: z.ZodDefault>; shortcut: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type AppSwitcherEntry = z.infer; type AppSwitcherConfig = z.infer; declare const cfdmBindingSyncItemSchema: z.ZodObject<{ bindingId: z.ZodNumber; serviceId: z.ZodNumber; serviceName: z.ZodString; serviceSlug: z.ZodString; fqdn: z.ZodString; zoneName: z.ZodString; hostname: z.ZodString; ips: z.ZodArray; deleted: z.ZodOptional; }, z.core.$strip>; declare const cfdmSyncBindingsBodySchema: z.ZodObject<{ bindings: z.ZodArray; deleted: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type CfdmBindingSyncItem = z.infer; declare const appSettingsPatchSchema: z.ZodObject<{ appSwitcher: z.ZodOptional; apps: z.ZodArray; url: z.ZodString; icon: z.ZodDefault>; shortcut: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; vpsTrackerUrl: z.ZodOptional]>>; vpsTrackerIntegrationToken: z.ZodOptional; vpsTrackerSyncEnabled: z.ZodOptional; }, z.core.$strip>; type AppSettingsPatch = z.infer; declare const vpsTrackerEventSchema: z.ZodObject<{ event: z.ZodEnum<{ vps_down: "vps_down"; vps_up: "vps_up"; }>; vps: z.ZodArray; label: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; }, z.core.$strip>; type VpsTrackerEvent = z.infer; export { type AppSettingsPatch, type AppSwitcherConfig, type AppSwitcherEntry, CERT_ERROR, CERT_EXPIRED, CERT_MONITORING_VALUES, CERT_MONITOR_AUTO, CERT_MONITOR_REQUIRED, CERT_MONITOR_SKIPPED, CERT_OK, CERT_UNKNOWN, CERT_WARNING, type CertMonitoring, type Certificate, type CfDnsRecord, type CfZone, type CfdmBindingSyncItem, type CreateDnsRecordInput, type CreateDnsRecordPayload, type CreateDomainInput, type CreateGroupInput, type CreateServiceBindingInput, type CreateServiceGroupInput, type CreateServiceInput, type CreateServiceWithConfigInput, type CreateSubdomainInput, type DnsRecord, type Domain, type DomainListItem, type Group, type GroupWithStats, type HealthCheckConfig, type HealthCheckScope, type HealthCheckTarget, type HealthCheckType, type HealthStatusQuery, type IpHealthState, type IpHealthStatus, type JwtClaims, type LbMode, type LoginInput, type LoginRequest, type LoginResponse, type ParsedFqdn, type ReorderServicesInput, SYNC_CONFLICT, SYNC_ERROR, SYNC_PENDING_DELETE, SYNC_PENDING_PUSH, SYNC_SYNCED, type Service, type ServiceBinding, type ServiceBindingView, type ServiceDomainBinding, type ServiceDomainBindingView, type ServiceGroup, type ServiceGroupView, type ServiceGroupsResponse, type ServiceView, type Subdomain, type SubdomainRecord, type SyncJob, type ToggleEnabledInput, type UpdateDomainInput, type UpdateServiceConfigInput, type UpdateServiceGroupInput, type UpdateSubdomainInput, ValidationError, type VpsTrackerEvent, appSettingsPatchSchema, appSwitcherConfigSchema, appSwitcherEntrySchema, appSwitcherIconSchema, bindingToFqdn, certMonitoringSchema, certStatusFromExpiry, certificateSchema, cfdmBindingSyncItemSchema, cfdmSyncBindingsBodySchema, createDnsRecordSchema, createDomainSchema, createGroupSchema, createServiceBindingSchema, createServiceGroupSchema, createServiceSchema, createServiceWithConfigSchema, createSubdomainSchema, dnsNameToSubdomainLabel, dnsRecordNamesMatch, dnsRecordSchema, domainListItemSchema, domainSchema, fqdnToDisplay, groupSchema, groupWithStatsSchema, healthCheckConfigSchema, healthCheckScopeSchema, healthCheckTypeSchema, healthStatusQuerySchema, ipHealthStateSchema, ipHealthStatusSchema, isValidIpv4, lbModeSchema, loginSchema, normalizeDnsRecordName, parseFqdn, reorderServicesSchema, serviceBindingSchema, serviceDomainBindingSchema, serviceGroupSchema, serviceGroupTypeSchema, serviceGroupViewSchema, serviceGroupsResponseSchema, serviceSchema, serviceViewSchema, shouldMonitorService, subdomainLabelToFqdn, subdomainSchema, toggleEnabledSchema, updateDomainGroupSchema, updateDomainSchema, updateServiceConfigSchema, updateServiceGroupSchema, updateSubdomainSchema, validateDnsRecord, vpsTrackerEventSchema };