import type { DeployApiClientOptions, DeployEnvironment, DeployEnvironmentProvisioningStatus, DeployQueryValueList } from "./common/types.js"; export declare const fetchEnvironments: (options: DeployApiClientOptions, query?: Record) => Promise; export type FetchAllEnvironmentsResult = { totalCount?: number; pageSize: number; items: DeployEnvironment[]; }; /** * Walk every page of `/api/environments/v2` and concatenate the results. * The Deploy API caps each page at 10 unless `PageSize` is set; this * helper bumps it to 50 by default and follows `totalCount` (or an * under-full page) to know when to stop. Callers that want a single * page should use `fetchEnvironments` directly. */ export declare const fetchAllEnvironments: (options: DeployApiClientOptions, query?: Record, pageSize?: number) => Promise; export declare const fetchEnvironmentsLimitation: (options: DeployApiClientOptions) => Promise; export declare const fetchEnvironment: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const fetchEnvironmentDeployments: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const createEnvironmentDeployment: (options: DeployApiClientOptions, environmentId: string, redeploy?: boolean) => Promise; export declare const fetchEnvironmentVariables: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const upsertEnvironmentVariable: (options: DeployApiClientOptions, environmentId: string, variable: string, body: Record) => Promise; export declare const deleteEnvironmentVariable: (options: DeployApiClientOptions, environmentId: string, variable: string) => Promise; export declare const fetchEnvironmentEdgeToken: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const fetchEnvironmentEditingSecret: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const regenerateEnvironmentContext: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const deleteEnvironment: (options: DeployApiClientOptions, environmentId: string, force?: boolean) => Promise; export declare const updateEnvironment: (options: DeployApiClientOptions, environmentId: string, body: Record) => Promise; export declare const promoteEnvironmentDeployment: (options: DeployApiClientOptions, environmentId: string, deploymentId: string) => Promise; export declare const linkEnvironmentRepository: (options: DeployApiClientOptions, environmentId: string, body: Record) => Promise; export declare const unlinkEnvironmentRepository: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const fetchEnvironmentRestartStatus: (options: DeployApiClientOptions, environmentId: string) => Promise; export declare const restartEnvironment: (options: DeployApiClientOptions, environmentId: string) => Promise; export type EnvironmentHealthResult = { host: string; url: string; status: number; ok: boolean; body: string; }; export declare const probeEnvironmentHealth: (host: string, timeoutMs?: number) => Promise; /** * Translate the Deploy API's numeric `provisioningStatus` to a stable * string label. See the doc comment on `DeployEnvironmentProvisioningStatus` * for which codes are observed vs inferred. */ export declare const getProvisioningStatus: (environment: Pick) => DeployEnvironmentProvisioningStatus; export declare const resolveHostFromEnvironment: (environment: DeployEnvironment) => string | undefined;