import { Attachment } from '@jrmc/adonis-attachment';
import vine, { Vine } from '@vinejs/vine';
import { VineInstanceOf } from './vine_instanceof.js';
const attachmentSchema = vine.object({
    size: vine.number(),
    mimeType: vine.string(),
    originalName: vine.string().optional(),
    url: vine.string().url(),
});
Vine.macro('attachment', function (options) {
    return new VineInstanceOf(Attachment, attachmentSchema, options);
});
//# sourceMappingURL=vine_attachment.js.map