export interface ZtrackProjectIdentity { projectRoot: string; projectKey: string; scope: 'shared' | 'worktree'; } export interface WorkTargetSignal { source: 'environment' | 'loop' | 'branch' | 'worktree'; issueIds: string[]; detail: string; } export interface WorkTargetResolution { project: ZtrackProjectIdentity; effective: { issueId: string; source: WorkTargetSignal['source']; } | null; signals: WorkTargetSignal[]; reason: string; } /** Resolve identity from the same storage-scope decisions the tracker backend uses. */ export declare function resolveProjectIdentity(startDir: string): ZtrackProjectIdentity; /** Resolve an observational work target. The caller must pass any session-attested environment * issue explicitly; this function never reads the host process's ZTRACK_ACTIVE_ISSUE. */ export declare function resolveWorkTarget(input: { startDir: string; environmentIssue?: string; }): WorkTargetResolution;