/** * Enrolment lives here, behind a CLI — NOT behind a model-facing tool. * * A tool the model could call would let an agent enrol itself and bootstrap its * own identity with no human in the loop, so the identity would no longer * attest to a person's decision to create it. Keeping enrolment a human act is * a governance property of this package, not a UX preference. Do not "just add * a connect tool" to `src/tools/`. */ export declare const CONNECT_USAGE = "agentvalet-dsh-connect \u2014 connect a dsh profile to AgentValet\n\n --profile dsh profile to connect (default: \"default\")\n --token single-use bootstrap token from the AgentValet dashboard.\n Omit it to read AGENTVALET_BOOTSTRAP_TOKEN instead, which\n keeps the token out of your shell history.\n --home where the identity is stored (default: $DSH_HOME, else ~/.dsh)\n --proxy AgentValet proxy URL (default: https://api.agentvalet.ai)\n --help\n"; declare const FLAGS: readonly ["profile", "token", "home", "proxy"]; type Flag = (typeof FLAGS)[number]; export interface ConnectArgs extends Partial> { help?: true; } export declare function parseConnectArgs(argv: readonly string[]): ConnectArgs; export interface ConnectIO { argv: readonly string[]; env: NodeJS.ProcessEnv; /** Injected for tests; the real bin passes nothing and gets global fetch. */ fetch?: typeof globalThis.fetch; } /** * Run the connect flow and return the lines to print. Neither the bootstrap * token nor the private key is ever part of the returned text. */ export declare function runConnect(io: ConnectIO): Promise; export {};