import { Effect, FileSystem, Path } from "effect"; import { RuntimeConfig } from "../app/runtime.ts"; import { VendorStrategyCommandFailed } from "../domain/errors.ts"; import type { VendorStrategy } from "../domain/vendor-strategy.ts"; export interface CacheLinkCacheEnv { readonly HOME?: string; readonly INGRAFT_CACHE_DIR?: string; readonly XDG_CACHE_HOME?: string; } export interface CacheLinkEntryPathParams { readonly resolvedRef: string; readonly root: string; readonly url: string; } export interface EnsureCacheLinkCheckoutParams { readonly action: "add" | "update"; readonly cwd: string; readonly ref: string; readonly strategy: VendorStrategy; readonly url: string; } export interface LinkCacheCheckoutParams { readonly cachePath: string; readonly cwd: string; readonly prefix: string; } export interface CacheLinkCheckout { readonly cachePath: string; readonly resolvedRef: string; } export declare const cacheLinkCacheRootFromEnv: (env?: CacheLinkCacheEnv) => string; export declare const cacheLinkEntryPath: ({ resolvedRef, root, url }: CacheLinkEntryPathParams) => string; export declare const parseLsRemoteCommit: (stdout: string) => string | null; export declare const ensureCacheLinkCheckout: ({ action, cwd, ref, strategy, url }: EnsureCacheLinkCheckoutParams) => Effect.Effect<{ cachePath: string; resolvedRef: string; }, VendorStrategyCommandFailed | import("effect/PlatformError").PlatformError, RuntimeConfig | FileSystem.FileSystem | import("../services/git.ts").Git>; export declare const linkCacheCheckout: ({ cachePath, cwd, prefix }: LinkCacheCheckoutParams) => Effect.Effect; //# sourceMappingURL=cache-link.d.ts.map