import { type FleetClient } from "./api.js"; /** The variable a skill's secret lives in on its machine: `SKILLHOOK_SECRET_`. */ export declare const SECRET_ENV_RE: RegExp; /** * The variable to generate: the secret of the machine's skill named `given` (as the machine reports it), or `given` * itself when it is a skill's secret (`SKILLHOOK_SECRET_*`, or a variable a skill there names). Never another variable * of the machine (its admin token, the cloud link's, a runner's API key): those are set on the machine itself. */ export declare function secretNameFor(client: FleetClient, machine: string, given: string): Promise; export interface RemoteSecret { machine: string; name: string; /** The value, shown once; null when the machine kept the secret it already had (`force` replaces it). */ secret: string | null; existed: boolean; } export declare function generateRemoteSecret(client: FleetClient, input: { machine: string; name: string; force?: boolean; }, options?: { timeoutMs?: number; pollMs?: number; }): Promise;