export type DistributionChannel = 'github' | 'npm-private' | 'npm-public'; export interface PackLocalDependencies { readonly runNpm?: (args: readonly string[], cwd: string) => Promise; readonly write?: (value: string) => void; readonly afterLiveGates?: () => Promise; readonly validateSnapshot?: (snapshotRoot: string) => Promise; } export interface CapturedCompilerSource { readonly snapshotRoot: string; readonly snapshotDigest: string; readonly sourceManifestBytes: Buffer; readonly lockfileBytes: Buffer; } export declare function assertCapturedCompilerSourceUnchanged(captured: CapturedCompilerSource, phase: string): Promise; export declare function sanitizeRuntimeManifest(source: Readonly>, channel?: DistributionChannel): Readonly>; /** Resolve packaged documentation on npm without making the source GitHub repository public. */ export declare function rewritePublicReadme(markdown: string, version: string): string; export declare function preparePublicReadmes(packageRoot: string, version: string): Promise; export declare function captureValidatedCompilerSource(repoRoot: string, workRoot: string, validateSnapshot?: (snapshotRoot: string) => Promise): Promise; /** Build one local tarball through the audited staging allowlist. Never publishes or installs. */ export declare function packLocal(repoRoot: string, dependencies?: PackLocalDependencies, channel?: DistributionChannel): Promise;