/** Allowed sort columns — whitelist prevents injection. */
export declare const VALID_SORT_COLUMNS: Record<string, string>;
/** Allowed sort directions. */
export declare const VALID_SORT_ORDERS: Set<string>;
/**
 * List stream messages with pagination, filtering, and sorting.
 *
 * Source is required — engine and worker streams are separate tables
 * with different schemas and must never be commingled in a single query.
 *
 * Parameters: $1 = stream_name, $2 = status, $3 = msg_type,
 *             $4 = topic, $5 = workflow_name, $6 = jid, $7 = aid,
 *             $8 = limit, $9 = offset
 */
export declare function LIST_STREAM_MESSAGES(schema: string, sortColumn: string, sortOrder: string, source: 'engine' | 'worker'): string;
/**
 * Count stream messages matching the filter criteria.
 *
 * Parameters: $1 = stream_name, $2 = status, $3 = msg_type
 */
export declare function COUNT_STREAM_MESSAGES(schema: string, source: 'engine' | 'worker'): string;
