import { URI } from '../../../util/vs/base/common/uri';
import { type IGitService } from '../../git/common/gitService';
export interface WorkspaceOTelMetadata {
    readonly headBranchName?: string;
    readonly headCommitHash?: string;
    readonly remoteUrl?: string;
    readonly fileRelativePath?: string;
}
/**
 * Synchronously resolve workspace metadata from the active repository.
 * Uses `activeRepository.get()` which is non-blocking.
 */
export declare function resolveWorkspaceOTelMetadata(gitService: IGitService, fileUri?: URI): WorkspaceOTelMetadata;
/**
 * Convert workspace metadata to OTel attributes, omitting undefined values.
 */
export declare function workspaceMetadataToOTelAttributes(metadata?: WorkspaceOTelMetadata): Record<string, string>;
//# sourceMappingURL=workspaceOTelMetadata.d.ts.map