export interface SaveOptions { ignoreCache?: boolean; log?: (message: string) => void; tag?: (type: 'download' | 'cached') => void; } export declare const VIRTUAL_CONTENT_ROOT = "src/content/notion"; /** * Downloads and saves an image from an AWS URL to a local directory. * * @param url The AWS URL of the image to download. * @param dir The directory path where the image will be saved. * @param options Optional configuration for saving the image. * @param options.ignoreCache Whether to ignore cached images and download again. Defaults to false. * @param options.log Optional logging function to record the operation. * @param options.tag Optional tagging function to mark the operation as 'download' or 'cached'. * * @returns The relative path of the saved image from the project's virtual content root. * * @throws {Error} If the provided `url` is invalid. * * @example * For the following AWS URL: * https://prod-files-secure.s3.us-west-2.amazonaws.com/ed3b245b-dd96-4e0d-a399-9a99a0cf37c0/d16195b7-f998-4b7c-8d2e-38b9c47be295/image.png?... * * The function parses the URL into: * - Parent ID: ed3b245b-dd96-4e0d-a399-9a99a0cf37c0 * - Object ID: d16195b7-f998-4b7c-8d2e-38b9c47be295 * - File Name: image.png * * And saves it to: * ./src/{dir}/ed3b245b-dd96-4e0d-a399-9a99a0cf37c0/d16195b7-f998-4b7c-8d2e-38b9c47be295.png */ export declare function saveImageFromAWS(url: string, dir: string, options?: SaveOptions): Promise; /** * Transforms a raw image path into a relative path from the 'src' directory. */ export declare function transformImagePathForCover(rawPath: string): string; //# sourceMappingURL=image.d.ts.map