import { AgentValet } from '@agentvalet/client'; import type { Context } from '@deepseek-ai/cordis'; import { type CredentialStore } from './store.js'; /** Cordis plugin name used by loader diagnostics. */ export declare const name = "av-identity"; /** No hard dependencies: identity must boot before anything injects it. */ export declare const inject: string[]; /** * Where the profile's signing key lives when nothing else says otherwise. * * NEVER `process.cwd()`. For an interactive dsh session the cwd is the user's * project repository, so a default there puts an RS256 private key one * `git add -A` away from being committed and pushed. */ export declare function defaultHomeDir(env?: NodeJS.ProcessEnv): string; export interface AgentValetService { readonly enrolled: boolean; client(): AgentValet; enrol(bootstrapToken: string): Promise; } export interface ServiceOptions { profile: string; proxyUrl: string; store: CredentialStore; fetch?: typeof globalThis.fetch; } export declare function createAgentValetService(opts: ServiceOptions): Promise; export interface Config { plugin: 'identity'; profile?: string; proxyUrl?: string; homeDir?: string; } export declare function apply(ctx: Context, config: Config): Promise;