import type { Attachment } from "../core/types.js"; /** Options for {@link resolveAttachments}. */ export interface ResolveAttachmentsOptions { /** * If set, attachment paths must resolve within this directory. * Prevents path traversal via `..` segments and sibling-directory * prefix matches. Opt-in only. * * Note: this check uses `node:path` `resolve()`, which does NOT * dereference symlinks. A symlink located inside `basePath` that * points outside of it will pass this check. If symlink traversal is * a concern, resolve paths with `fs.realpath()` before passing them in. */ basePath?: string; } /** * Resolve attachment.path to in-memory Uint8Array content. * @throws When attachment.path is used on runtimes without node:fs/promises */ export declare function resolveAttachments(attachments: Attachment[] | undefined, options?: ResolveAttachmentsOptions): Promise;