export type DeployTarget = { host: string; projectId: string; apiKey: string; }; /** Human-readable origin of each resolved field, for the deploy summary. */ export type TargetProvenance = { host: string; projectId: string; apiKey: string; }; export type TargetOverrides = { host?: string; project?: string; /** Name of the env var to read the API key from (never the key itself). */ apiKeyEnv?: string; }; /** The `log` section of AgencyConfig, narrowed to the fields deploy needs. */ export type LogConfig = { host?: string; projectId?: string; }; export type ResolveTargetResult = { ok: true; target: DeployTarget; provenance: TargetProvenance; } | { ok: false; error: string; }; /** * Resolve the deploy target. Host and project come from a flag or agency.json * `log.*`; the API key is read from an environment variable (the `--api-key-env` * one, or `STATELOG_API_KEY` by default). Fails with everything that's missing * or malformed rather than one problem at a time. */ export declare function resolveDeployTarget(log: LogConfig | undefined, overrides: TargetOverrides, env: NodeJS.ProcessEnv): ResolveTargetResult;