import type { OpContext, OpName } from "../types.ts";
import { type FilesystemOperation } from "./filesystem.ts";
/** Resolve a request path against the scope root (or the process cwd when the scope has none). */
export declare function resolveOpPath(path: string, ctx: OpContext): string;
/**
 * Containment and filesystem policy for one path, before any effect. A path (or a symlink in it) resolving outside
 * `ctx.scope.root` is a denial. With neither a root nor a filesystem policy the path is not canonicalized at all.
 */
export declare function checkPath(absolutePath: string, operation: FilesystemOperation, op: OpName, ctx: OpContext): Promise<void>;
/** Run `beforeOp`, the effect, then `afterOp`. A denial throws before the effect runs. */
export declare function gated<T>(op: OpName, args: unknown, ctx: OpContext, effect: () => Promise<T>): Promise<T>;
//# sourceMappingURL=gate.d.ts.map