import type { AgentConfig } from '../config/types.js'; /** * Registration response from vault */ export interface RegistrationResult { apiKey: string; agentId: string; managedKeyName: string | null; tenantId: string; hostConfigId: string; configVersion: number; } /** * Exchange bootstrap token for API key via registration endpoint. * * This is called on first startup when the config contains a bootstrapToken * but no apiKey. The token is exchanged for an API key which is then * persisted to the config file. * * @param config - Agent config with bootstrapToken * @returns Registration result with API key and agent info * @throws Error if registration fails */ export declare function exchangeBootstrapToken(config: AgentConfig): Promise; /** * Check if the config needs bootstrap registration */ export declare function needsBootstrapRegistration(config: AgentConfig): boolean; /** * Update config with registration result * Returns a new config object (does not mutate input) */ export declare function applyRegistrationResult(config: AgentConfig, result: RegistrationResult): AgentConfig; //# sourceMappingURL=bootstrap.d.ts.map