/** * Native attachment storage driver. * This driver delegates all I/O to user-provided callbacks. */ export default class NativeAttachmentStorageDriver { configuration: import("../../../../configuration.js").default | undefined; name: string; options: Record; /** * Runs constructor. * @param {object} args - Options. * @param {import("../../../../configuration.js").default} [args.configuration] - Configuration instance. * @param {string} args.name - Driver name. * @param {Record>} [args.options] - Driver options. */ constructor({ configuration, name, options }: { configuration?: import("../../../../configuration.js").default; name: string; options?: Record>; }); /** * Runs write. * @param {object} args - Write args. * @param {string} args.attachmentId - Attachment id. * @param {import("../normalize-input.js").NormalizedAttachmentInput} args.input - Normalized attachment input. * @param {import("../../index.js").default} args.model - Model instance. * @param {string} args.name - Attachment name. * @returns {Promise<{storageKey: string}>} - Storage key result. */ write({ attachmentId, input, model, name }: { attachmentId: string; input: import("../normalize-input.js").NormalizedAttachmentInput; model: import("../../index.js").default; name: string; }): Promise<{ storageKey: string; }>; /** * Runs read. * @param {object} args - Read args. * @param {string} args.storageKey - Storage key. * @param {import("../../index.js").default} args.model - Model instance. * @param {string} args.name - Attachment name. * @param {Record>} args.row - Attachment row. * @returns {Promise} - Attachment bytes. */ read({ model, name, row, storageKey }: { storageKey: string; model: import("../../index.js").default; name: string; row: Record>; }): Promise; /** * Runs delete. * @param {object} args - Delete args. * @param {string} args.storageKey - Storage key. * @param {import("../../index.js").default} args.model - Model instance. * @param {string} args.name - Attachment name. * @param {Record>} args.row - Attachment row. * @returns {Promise} - Resolves when deleted. */ delete({ model, name, row, storageKey }: { storageKey: string; model: import("../../index.js").default; name: string; row: Record>; }): Promise; /** * Runs url. * @param {object} args - URL args. * @param {string} args.storageKey - Storage key. * @param {import("../../index.js").default} args.model - Model instance. * @param {string} args.name - Attachment name. * @param {Record>} args.row - Attachment row. * @returns {Promise} - Attachment URL. */ url({ model, name, row, storageKey }: { storageKey: string; model: import("../../index.js").default; name: string; row: Record>; }): Promise; } //# sourceMappingURL=native.d.ts.map