Two multi-million-pound bids are being prepared to regenerate deprived coastal communities in Flintshire.