/** * Shared setup for the integration suites. * * Not a `*.test.ts` file, so `--testPathPattern`/`--testPathPatterns=integration` does not try to * collect it as a suite. */ import { CoolifyClient } from '../../lib/coolify-client.js'; /** Trailing slashes produce `//api/v1/...`, which Coolify's catch-all 404s — making every "method rejected" assertion pass for the wrong reason. */ export declare const COOLIFY_URL: string | undefined; export declare const COOLIFY_TOKEN: string | undefined; export declare const hasCredentials: boolean; export declare function warnIfSkipped(suite: string): void; export declare const describeIf: (condition: boolean) => jest.Describe; export declare function makeClient(): CoolifyClient; /** * Parsed `major.minor`. Returned as a tuple rather than a float because * `Number('4.10')` is `4.1`, which compares as *older* than 4.2 — and the * pre-4.2 branch of the compat suite issues real state-changing probes, so a * mis-parse there is not a cosmetic bug. */ export declare function parseMajorMinor(version: string): [number, number]; export declare function atLeast(actual: [number, number], target: [number, number]): boolean; export declare const V4_2: [number, number]; /** Resolve the instance version, or `[0, 0]` if it cannot be read. */ export declare function resolveVersion(client: CoolifyClient): Promise<{ version: [number, number]; raw: string; }>;