import type { NetGetExposurePolicyInput } from './runtime/exposurePolicy.js'; import { type PortLease, type PortLeaseMode } from './runtime/portLeases.js'; export interface NetGetAppOptions { name?: string; port?: number | 'auto'; mode?: PortLeaseMode; protocol?: 'http' | 'https'; host?: string; url?: string; mainServer?: string; tags?: string[]; metadata?: Record; heartbeatMs?: number; strict?: boolean; kind?: NetGetAppKind; status?: NetGetAppStatus; health?: NetGetAppHealth; ui?: NetGetAppUi; exposure?: NetGetExposurePolicyInput; lifecycle?: NetGetAppLifecycle; } export type NetGetAppKind = 'app' | 'monad' | 'service' | 'system'; export type NetGetAppStatus = 'starting' | 'running' | 'paused' | 'stopped' | 'error'; export interface NetGetAppHealth { state: 'unknown' | 'healthy' | 'degraded' | 'unhealthy'; updatedAt?: string; message?: string; } export interface NetGetAppUi { hasAdminPanel?: boolean; hasUserPanel?: boolean; defaultPath?: string; } export interface NetGetAppLifecycle { supportsStart?: boolean; supportsStop?: boolean; supportsRestart?: boolean; supportsPause?: boolean; supportsResume?: boolean; supportsDelete?: boolean; } export interface NetGetAppRegistration { id: string; name: string; kind?: NetGetAppKind; pid: number; cwd: string; hostname: string; port?: number; protocol: 'http' | 'https'; host: string; url?: string; tags: string[]; metadata: Record; status?: NetGetAppStatus; health?: NetGetAppHealth; ui?: NetGetAppUi; exposure?: NetGetExposurePolicyInput; lifecycle?: NetGetAppLifecycle; startedAt: string; updatedAt: string; ttlMs: number; leaseId?: string; mode: PortLeaseMode; portStatus: string; } export interface NetGetSession { id: string; name: string; port: number; url: string; mode: PortLeaseMode; lease: PortLease; endpoint: string; registration: NetGetAppRegistration; report(): Promise; stop(): Promise; } export interface NetGetConfig { [key: string]: any; } export declare function netget(options?: NetGetAppOptions): Promise; /** * Backwards-compatible configuration holder. */ export declare class NetGet { private config?; constructor(config?: NetGetConfig); getConfig(): NetGetConfig | undefined; updateConfig(newConfig: Partial): void; } export default netget; //# sourceMappingURL=netget.d.ts.map