import { loadCredential, type OrgCredential } from './auth-store'; import { loadEnvironmentDescriptor, loadWorkspaceManifest } from './workspace-contract'; export interface TargetContext { workspaceId: string; targetOrg: string; instanceUrl: string; environmentName?: string; source: { workspaceId: string; targetOrg: string; }; } export interface ResolveTargetContextOptions { workspaceDir?: string; workspaceId?: string; targetOrg?: string; environmentName?: string; } interface TargetContextDependencies { loadWorkspaceManifest: typeof loadWorkspaceManifest; loadEnvironmentDescriptor: typeof loadEnvironmentDescriptor; loadCredential: typeof loadCredential; } export interface ResolvedTargetContext { context: TargetContext; credential: OrgCredential; } export declare class TargetContextError extends Error { readonly code: string; readonly details?: Record | undefined; constructor(code: string, message: string, details?: Record | undefined); } export declare function resolveTargetContext(options: ResolveTargetContextOptions, dependencies?: TargetContextDependencies): ResolvedTargetContext; export declare function formatTargetSummary(context: TargetContext): string; export declare function printTargetSummary(context: TargetContext): void; export {};