import { Lockfile, ServerLock, SkillsLock, ToolLock, ToolSurface } from './types.js'; export declare const LOCKFILE_NAME = "agentgate.lock"; export declare function sha256(input: string): string; /** Deterministic JSON serialization: object keys sorted recursively. */ export declare function canonicalJson(value: unknown): string; export declare function lockTool(tool: ToolSurface): ToolLock; export declare function lockServer(tools: ToolSurface[]): ServerLock; /** Hash a set of skill/instruction files (posix-relative path → content). */ export declare function lockSkills(contents: Record): SkillsLock; export declare function createLockfile(surfaces: Record, generatedBy?: string, skills?: SkillsLock): Lockfile; export declare function serializeLockfile(lockfile: Lockfile): string; export declare const SUPPORTED_LOCKFILE_VERSIONS: readonly [1, 2]; /** @deprecated use {@link SUPPORTED_LOCKFILE_VERSIONS}; kept for API compatibility. */ export declare const SUPPORTED_LOCKFILE_VERSION = 1; export declare function parseLockfile(raw: string): Lockfile;