/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { File } from '../code_executors/code_execution_utils.js'; /** * Writes `files` into `dir`, refusing any entry that resolves outside of it. * * `dir` is deliberately required and has no default: file names typically * originate from a code executor's output (i.e. from model- or skill-controlled * content), so the destination must be a dedicated directory chosen by the * caller. Defaulting to `process.cwd()` would let such content drop files into * the host application's working directory. * * @param files The files to materialize. * @param dir The directory to materialize the files into. */ export declare function materializeFiles(files: File[], dir: string): Promise; export declare const EXTENSION_TO_MIME_TYPE: Record; export declare function guessMimeType(filePath: string): string;