import type { ResolveSkillSourceContext } from './types.js'; /** Test seam: lets unit tests simulate a foreign-owned dir without a second OS user. */ export interface StageOptions { /** Override the "current uid" used for the ownership check (test-only). */ uidOverride?: number; } /** * Copy `srcDir` into `/` and return the forward-slash * absolute staged path. * * §7 hardening: the staging root is created 0700; a pre-existing staging root * or key dir that is not owned by the current uid is rejected; symlinked path * components in the SOURCE tree are refused (never copied through). * * @param srcDir Absolute path to the resolved source directory. * @param ctx Resolution context (supplies stagingRoot). * @param key Content-addressed key (already sanitized — caller passes a hash or hex). * @returns Forward-slash absolute staged directory path. */ export declare function stageDirInto(srcDir: string, ctx: ResolveSkillSourceContext, key: string, opts?: StageOptions): Promise; //# sourceMappingURL=stage.d.ts.map