import { PACKAGE_VERSION, nowIso } from '../fsx.js';
export const IMAGE_VOXEL_LEDGER_SCHEMA = 'sks.image-voxel-ledger.v1';
export function emptyImageVoxelLedger(overrides = {}) {
    return {
        schema: IMAGE_VOXEL_LEDGER_SCHEMA,
        version: PACKAGE_VERSION,
        generated_at: nowIso(),
        mission_id: null,
        images: [],
        anchors: [],
        relations: [],
        ...overrides
    };
}
export function isImageVoxelLedger(value) {
    if (!value || typeof value !== 'object')
        return false;
    const ledger = value;
    return ledger.schema === IMAGE_VOXEL_LEDGER_SCHEMA
        && Array.isArray(ledger.images)
        && Array.isArray(ledger.anchors)
        && Array.isArray(ledger.relations);
}
//# sourceMappingURL=image-voxel-schema.js.map