/** * Shared types for E2B mount operations. */ import type { Sandbox } from 'e2b'; import type { E2BAzureBlobMountConfig } from './azure.js'; import type { E2BGCSMountConfig } from './gcs.js'; import type { E2BS3MountConfig } from './s3.js'; export declare const LOG_PREFIX = "[@mastra/e2b]"; /** * Union of mount configs supported by E2B sandbox. */ export type E2BMountConfig = E2BS3MountConfig | E2BGCSMountConfig | E2BAzureBlobMountConfig; /** * Context for mount operations. */ export interface MountContext { sandbox: Sandbox; logger: { debug: (message: string, ...args: unknown[]) => void; info: (message: string, ...args: unknown[]) => void; warn: (message: string, ...args: unknown[]) => void; error: (message: string, ...args: unknown[]) => void; }; } /** * Result of a mount operation. */ export interface MountOperationResult { success: boolean; error?: string; } export declare function validateS3BucketName(bucket: string): void; export declare function validateGCSBucketName(bucket: string): void; /** * Validate an endpoint URL before interpolating into shell commands. */ export declare function validateEndpoint(endpoint: string): void; export declare function validateRegion(region: unknown): asserts region is string; /** * Validate and normalize a mount prefix before interpolating into shell commands. * Returns the normalized prefix (no leading/trailing slashes). * * Shell safety is handled by shellQuote() at the call site, so this function * only enforces path-level rules (no traversal, no empty result, no control chars). */ export declare function validatePrefix(prefix: string): string; //# sourceMappingURL=types.d.ts.map