export declare const accountActiveStake = "\nSELECT amount AS value\nFROM epoch_stake\nWHERE epoch_no = $1\n AND addr_id = $2"; export declare const poolDelegators = "\nSELECT addr_id, view = ANY($3) AS owner\nFROM delegation od\nJOIN stake_address sa ON od.addr_id = sa.id\nWHERE pool_hash_id = $2\n AND active_epoch_no <= $1\n AND NOT EXISTS (\n SELECT TRUE FROM delegation id\n WHERE id.addr_id = od.addr_id\n AND id.active_epoch_no <= $1\n AND (id.tx_id > od.tx_id OR (id.tx_id = od.tx_id AND id.cert_index > od.cert_index)))\n AND EXISTS (\n SELECT TRUE FROM stake_registration re\n WHERE re.addr_id = od.addr_id\n AND re.epoch_no <= $1\n AND NOT EXISTS (\n SELECT TRUE FROM stake_deregistration de\n WHERE de.addr_id = od.addr_id\n AND de.epoch_no <= $1\n AND (de.tx_id > re.tx_id OR (de.tx_id = re.tx_id AND de.cert_index > re.cert_index))))"; export declare const poolRewards = "\nSELECT amount, type FROM reward\nWHERE earned_epoch = $1\n AND pool_id = $2\n AND type IN ('leader', 'member')"; //# sourceMappingURL=stakePoolRewardsQueries.d.ts.map