/** * Alert Transaction Item Model * * Extends Transaction with alert item metadata. * Used when listing transactions within an alert context. */ import type { AlertItemValidationError } from "@artu-ai/shared"; import { Transaction, type TransactionData } from "./Transaction"; /** * Transaction data enriched with alert item fields. */ export interface AlertTransactionItemData extends TransactionData { alertItemId: string; alertItemValidationErrors?: AlertItemValidationError[]; alertItemScopeData?: Record; alertItemMetadata?: Record; alertItemCreatedAt?: string; } /** * Alert Transaction Item Model. * * Extends Transaction with alert-item-specific fields like validation errors, * scope data, and the alert item ID (needed for remove operations). */ export declare class AlertTransactionItem extends Transaction { protected _data: AlertTransactionItemData; /** * The alert item ID linking this transaction to the alert. * Required for remove operations. */ get alertItemId(): string; /** * Validation errors from the alert item */ get alertItemValidationErrors(): AlertItemValidationError[]; /** * Whether this alert item has validation errors */ get hasErrors(): boolean; /** * Whether this alert item has validation warnings */ get hasWarnings(): boolean; /** * Alert item scope data */ get alertItemScopeData(): Record | undefined; /** * Alert item metadata */ get alertItemMetadata(): Record | undefined; /** * When this transaction was added to the alert */ get alertItemCreatedAt(): Date | undefined; toString(): string; } export declare function isAlertTransactionItem(value: unknown): value is AlertTransactionItem;