import type { RuntimeVersion } from '../../schema'; import type { PackageOptions } from './types/packaging'; interface ResolvedPaths { projectRoot: string; srcDir: string; pyprojectPath: string; artifactDir: string; buildDir: string; stagingDir: string; artifactsDir: string; } export declare function isPythonRuntime(runtimeVersion: RuntimeVersion): boolean; export declare function isNodeRuntime(runtimeVersion: RuntimeVersion): boolean; export declare const MAX_ZIP_SIZE_BYTES: number; /** * Resolve CodeLocation path relative to repository root * @param codeLocation Path from AgentEnvSpec.Runtime.CodeLocation * @param configBaseDir Path to agentcore directory * @returns Absolute path to code location */ export declare function resolveCodeLocation(codeLocation: string, configBaseDir: string): string; export declare function resolveProjectPaths(options?: PackageOptions, agentName?: string): Promise; export declare function ensureDirClean(dir: string): Promise; export declare function copySourceTree(srcDir: string, destination: string): Promise; export declare function ensureBinaryAvailable(binary: string, installHint?: string): Promise; export declare function runCommand(command: string, args: string[], cwd?: string): Promise; export declare function createZipFromDir(sourceDir: string, outputZip: string): Promise; export declare function enforceZipSizeLimit(zipPath: string): Promise; export declare function resolveProjectPathsSync(options?: PackageOptions, agentName?: string): ResolvedPaths; export declare function resolveNodeProjectPathsSync(options?: PackageOptions, agentName?: string): ResolvedPaths; export declare function ensureDirCleanSync(dir: string): void; export declare function copySourceTreeSync(srcDir: string, destination: string): void; export declare function ensureBinaryAvailableSync(binary: string, installHint?: string): void; export declare function createZipFromDirSync(sourceDir: string, outputZip: string): void; export declare function enforceZipSizeLimitSync(zipPath: string): number; /** * Converts Windows .exe console scripts to Linux-compatible shell scripts. * This is necessary when packaging Python dependencies on Windows for deployment * to Linux-based AWS runtimes. * * @param stagingDir The directory containing installed Python packages */ export declare function convertWindowsScriptsToLinux(stagingDir: string): Promise; /** * Synchronous version of convertWindowsScriptsToLinux. */ export declare function convertWindowsScriptsToLinuxSync(stagingDir: string): void; /** * Fixes hardcoded shebangs in console scripts on macOS/Linux. * pip generates scripts with absolute paths to the local Python interpreter, * which breaks when deployed to Lambda. This regenerates known scripts with * portable #!/usr/bin/env python3 shebangs. */ export declare function fixConsoleScriptShebangs(stagingDir: string): Promise; /** * Synchronous version of fixConsoleScriptShebangs. */ export declare function fixConsoleScriptShebangsSync(stagingDir: string): void; export {}; //# sourceMappingURL=helpers.d.ts.map