/** * Embedded salt — bumped per minor version of lyse. * Rotation cadence is documented in spec v4 §14.3. */ export declare const BUCKET_SALT = "lyse-v0-2026Q2"; /** * Normalize a git remote URL by stripping the scheme, user/auth, and .git suffix, * leaving host+path lowercased. * Examples: * git@github.com:acme/repo.git → github.com/acme/repo * https://user:token@github.com/acme/repo → github.com/acme/repo * ssh://git@github.com:22/acme/repo.git → github.com/acme/repo */ export declare function normalizeRemoteUrl(url: string): string; export interface RepoBucketOptions { salt?: string; } /** * Compute the anonymous repo_bucket fingerprint for the repo at `repoRoot`. * Returns null if the repo has no .git, no first commit, or no remote. */ export declare function computeRepoBucket(repoRoot: string, options?: RepoBucketOptions): string | null; /** * Compute a repo_bucket fingerprint from a raw remote URL + salt, without * touching git. Used by the feedback telemetry path, which only has the * remote URL on hand. Uses the same normalization as {@link computeRepoBucket} * so credentials (`user:token@`), scheme, and port never reach the digest. */ export declare function computeRepoBucketFromUrl(remoteUrl: string, salt: string): string;