/** Build the canonical artifact path for a given session/rid/role/idx/ext. */ export declare function artifactPath(projectRoot: string, sid: string, rid: string, role: string, idx: number, ext?: string): string; /** Build the canonical shared channel path. */ export declare function sharedChannelPath(projectRoot: string, sid: string, rid: string, batchId: string): string; /** * Assert that `artifactPath` lives under * `projectRoot/.peaks/_sub_agents//artifacts/`. Rejects * symlink/junction escapes and `..` segments. * * Throws an Error with `.code = 'INVALID_ARTIFACT_PATH'` on rejection. */ export declare function assertSafeArtifactPath(artifactPathInput: string, projectRoot: string): string; /** * Assert that `channelPath` lives under * `projectRoot/.peaks/_sub_agents//shared/`. Same R-2 logic as * `assertSafeArtifactPath` but with a different canonical subdir. * * Throws an Error with `.code = 'INVALID_SHARED_CHANNEL_PATH'` on rejection. */ export declare function assertSafeSharedChannelPath(channelPathInput: string, projectRoot: string): string; /** * Soft-warn check on the artifact file name pattern. Returns null if * the name matches `--.`, otherwise returns a * warning string. Does NOT reject (the path is still in the canonical * dir; the warning is for human/audit readability per G7.4.c). */ export declare function checkArtifactNameConvention(artifactPathInput: string): string | null;