import { randomUUID } from 'node:crypto';
import dayjs from 'dayjs';
/**
 * Owns snapshot ids, timestamps, and the host-facing snapshot shape.
 */
export class BrowserSnapshotService {
    static create(input) {
        return {
            id: `browser_snapshot_${randomUUID()}`,
            url: input.url,
            title: input.title,
            capturedAt: dayjs().toISOString(),
            ariaSnapshot: input.ariaSnapshot,
            elements: input.elements,
        };
    }
}
//# sourceMappingURL=service.js.map