import { Order } from '../order/types';
import { EventName } from '../types';
interface SiftResult {
    order: Order | undefined;
    isFirstTime: boolean;
}
interface SieveOrder {
    order: Order;
    event: EventName;
    sift: Partial<Record<EventName, boolean>>;
    createdTimestamp: number;
}
export interface SieveAttestation {
    attestation: {
        signature: string;
        messagePayloadHash: string;
        messagePayload: string;
        bidWinner: string;
        order: Order;
    } | null;
    createdTimestamp: number;
    isFirstTime: boolean;
}
export declare class Sieve {
    static singleton: Sieve | null;
    readonly items: Map<string, {
        id: string;
        val: string;
        event: EventName;
        createdTimestamp: number;
    }>;
    readonly orders: Map<string, SieveOrder>;
    readonly attestations: Map<string, SieveAttestation>;
    readonly ORDERS_TTL_MS: number;
    private constructor();
    static getInstance(_ORDERS_TTL_MS?: number): Sieve;
    start(): Promise<void>;
    addItem(id: string, event: EventName, txHash: string): boolean;
    hasItem(id: string): boolean;
    addOrder(order: Order): boolean;
    addAttestation(orderId: string, attestation: {
        signature: string;
        messagePayloadHash: string;
        messagePayload: string;
        bidWinner: string;
        order: Order;
    }): void;
    getAttestation(orderId: string): SieveAttestation;
    siftId(orderId: string, event: EventName): SiftResult;
    private clearOrders;
}
export {};
//# sourceMappingURL=sieve.d.ts.map