export interface ClientIdRecord { clientOrderId: string; exchange: string; symbol: string; side: string; size: string; price?: string; type: "market" | "limit" | "stop"; exchangeOrderId?: string; status: "pending" | "submitted" | "filled" | "cancelled" | "failed"; createdAt: string; updatedAt: string; } /** Generate a unique client order ID */ export declare function generateClientId(prefix?: string): string; /** Log a client order ID record */ export declare function logClientId(record: ClientIdRecord): void; /** Look up a client order ID */ export declare function lookupClientId(clientOrderId: string): ClientIdRecord | null; /** Check if a client order ID has already been submitted (duplicate detection) */ export declare function isOrderDuplicate(clientOrderId: string): boolean; /** Update a client order ID record status */ export declare function updateClientId(clientOrderId: string, update: Partial): void; /** Read all client ID records (most recent N) */ export declare function readClientIds(limit?: number): ClientIdRecord[];