import { type WorkspacePolicyError } from "./errors.ts"; import { type HandleRef, type PathIntent, type ScopedCapability } from "./schema.ts"; declare const RESOLVED_PATH_REF: unique symbol; export interface PathArgumentEnvironment { /** Flow-authored argument declarations. Legacy declarations have no `type`. */ definitions: Readonly>; /** Already validated invocation values; defaults are read from definitions if absent. */ values: Readonly>; } export interface CapabilityEnvironment { workspaces: ReadonlyMap; handles?: ReadonlyMap; runId: string; phaseId: string; attemptId: string; resolutionTokenTtlMs?: number; now?: () => number; mintResolutionTokenId?: () => string; } export interface ResolvedPathRef { readonly [RESOLVED_PATH_REF]: true; readonly resolutionTokenId: string; readonly expiresAt: string; readonly capability: Readonly; readonly logicalSubpath: string; readonly physicalPath: string; readonly intent: PathIntent; } export type ResolvePathRefResult = { ok: true; value: ResolvedPathRef; } | { ok: false; error: WorkspacePolicyError; }; export type ResolveRelativePathResult = { ok: true; value: string; } | { ok: false; error: WorkspacePolicyError; }; /** Resolve a symbolic expression using only explicitly typed invocation args. */ export declare function resolveRelativePathExpr(input: unknown, args: PathArgumentEnvironment): ResolveRelativePathResult; export declare function handleRefKey(handle: HandleRef): string; export declare function resolvePathRef(input: unknown, env: CapabilityEnvironment, args: PathArgumentEnvironment): ResolvePathRefResult; export declare function isResolvedPathRef(value: unknown): value is ResolvedPathRef; export {}; //# sourceMappingURL=resolve.d.ts.map